ding.utils.autolog.value¶
ding.utils.autolog.value
¶
LoggedValue
¶
Overview
LoggedValue can be used as property in LoggedModel, for it has get and set method. This class's instances will be associated with their owner LoggedModel instance, all the LoggedValue of one LoggedModel will shared the only one time object (defined in time_ctl), so that timeline can be managed properly.
Interfaces:
__init__, __get__, __set__
Properties:
- __property_name (:obj:str): The name of the property.
__property_name
property
¶
Overview
Get the name of the property.
__init__(type_=object)
¶
Overview
Initialize the LoggedValue object.
Interfaces:
__init__
__get_ranged_data(instance)
¶
Overview
Get the ranged data.
Interfaces:
__get_ranged_data
__get__(instance, owner)
¶
Overview
Get the value.
Arguments:
- instance (:obj:LoggedModel): The owner LoggedModel instance.
- owner (:obj:type): The owner class.
__set__(instance, value)
¶
Overview
Set the value.
Arguments:
- instance (:obj:LoggedModel): The owner LoggedModel instance.
- value (:obj:_ValueType): The value to set.
Full Source Code
../ding/utils/autolog/value.py