Spaces:
Running
Running
Download DI-engine/ding/utils/autolog/base.py from OpenDILabCommunity/gomoku: direct link, hf CLI and curl.
- Browser
- Download file 701 Bytes
-
https://huggingface.co/spaces/OpenDILabCommunity/gomoku/resolve/main/DI-engine/ding/utils/autolog/base.py
- Command line
-
hf download hf://spaces/OpenDILabCommunity/gomoku/DI-engine/ding/utils/autolog/base.py
-
curl -L -o base.py https://huggingface.co/spaces/OpenDILabCommunity/gomoku/resolve/main/DI-engine/ding/utils/autolog/base.py
701 Bytes
| from enum import unique, IntEnum | |
| from typing import TypeVar, Union | |
| _LOGGED_VALUE__PROPERTY_NAME = '__property_name__' | |
| _LOGGED_MODEL__PROPERTIES = '__properties__' | |
| _LOGGED_MODEL__PROPERTY_ATTR_PREFIX = '_property_' | |
| _TimeType = TypeVar('_TimeType', bound=Union[float, int]) | |
| _ValueType = TypeVar('_ValueType') | |
| class TimeMode(IntEnum): | |
| """ | |
| Overview: | |
| Mode that used to decide the format of range_values function | |
| ABSOLUTE: use absolute time | |
| RELATIVE_LIFECYCLE: use relative time based on property's lifecycle | |
| RELATIVE_CURRENT_TIME: use relative time based on current time | |
| """ | |
| ABSOLUTE = 0 | |
| RELATIVE_LIFECYCLE = 1 | |
| RELATIVE_CURRENT_TIME = 2 | |