models
TOC
- Attributes:
- 🅰 NodeClassType
- 🅰 NodeParams - flag for shared module, which will be built once and cached out.
- 🅰 NodeInstance - flag for shared module, which will be built once and cached out.
- 🅰 NoCallSkipFlag - flag for shared module, which will be built once and cached out.
- 🅰 SpecialFlag - flag for shared module, which will be built once and cached out.
- 🅰 REUSE_FLAG - flag for shared module, which will be built once and cached out.
- 🅰 INTER_FLAG - flag for intermediate module, which will be built from scratch if need.
- 🅰 CLASS_FLAG - flag for use module class itself, instead of its instance.
- 🅰 REFER_FLAG - flag for refer a value from top level of config.
- 🅰 OTHER_FLAG - default flag.
- 🅰 FLAG_PATTERN - flag for no call, which will be skipped.
- 🅰 DO_NOT_CALL_KEY - flag for no call, which will be skipped.
- 🅰 IS_PARSING - flag for parsing
- 🅰 SPECIAL_FLAGS - hook flags.
- 🅰 HOOK_FLAGS - hook flags.
- 🅰 ConfigNode - ConfigNode type in parsing phase
- 🅰 NodeType - Type of ModuleNode
- 🅰 _dispatch_module_node - type:ignore
- 🅰 _dispatch_argument_hook - type:ignore
- Functions:
- 🅵 silent - Disables logging of build messages.
- 🅵 _is_special - Determine if the given string begin with target special flag.
- 🅵 _str_to_target - Imports a module or retrieves a class/function from a module
- 🅵 register_special_flag - Register a new special flag for module nodes.
- 🅵 register_argument_hook - Register a new argument hook.
- Classes:
- 🅲 ModuleNode - A base class representing
LazyConfigwhich is similar todetectron2.config.lazy.LazyCall. - 🅲 InterNode - Intermediate module node. More details see
config.overview. - 🅲 ConfigHookNode - Wrapper for
HookorConfigArgumentHook. - 🅲 ReusedNode - A subclass of InterNode representing a reused module node.
- 🅲 ClassNode -
ClassNodereturns the wrapped class, function or module itself instead of calling them. - 🅲 ConfigArgumentHook - An abstract base class for configuration argument hooks.
- 🅲 GetAttr - A subclass of ConfigArgumentHook for getting attributes.
- 🅲 VariableReference - A subclass of ClassNode for variable references.
- 🅲 ModuleWrapper
- 🅲 ModuleNode - A base class representing
Attributes
🅰 NodeClassType
NodeClassType = Type[Any]
🅰 NodeParams
NodeParams = Dict[str, Any] #flag for shared module, which will be built once and cached out.
🅰 NodeInstance
NodeInstance = object #flag for shared module, which will be built once and cached out.
🅰 NoCallSkipFlag
NoCallSkipFlag = Self #flag for shared module, which will be built once and cached out.
🅰 SpecialFlag
SpecialFlag = Literal["@", "!", "$", "&", ""] #flag for shared module, which will be built once and cached out.
🅰 REUSE_FLAG
REUSE_FLAG: Literal["@"] = "@" #flag for shared module, which will be built once and cached out.
🅰 INTER_FLAG
INTER_FLAG: Literal["!"] = "!" #flag for intermediate module, which will be built from scratch if need.
🅰 CLASS_FLAG
CLASS_FLAG: Literal["$"] = "$" #flag for use module class itself, instead of its instance.
🅰 REFER_FLAG
REFER_FLAG: Literal["&"] = "&" #flag for refer a value from top level of config.
🅰 OTHER_FLAG
OTHER_FLAG: Literal[""] = "" #default flag.
🅰 FLAG_PATTERN
FLAG_PATTERN = re.compile("^([@!$&])(.*)$") #flag for no call, which will be skipped.