towhee.hparam.hyperparameter.reads¶
- towhee.hparam.hyperparameter.reads()[source]¶
Get hyperparameter read operations.
- Returns:
hyperparameter read operations
- Return type:
List[str]
Examples: >>> _read_tracker.clear() >>> hp = HyperParameter(a=1, b={‘c’: 2}) >>> reads() # no read operations []
>>> hp.a # accessing parameter directly 1 >>> reads() # not tracked []
>>> hp().a() # accessing with accessor 1 >>> reads() # tracked! ['a']