rpn_config
Bases: config
The configuration class of RPN model.
It implements the configuration class for the RPN model specifically. The class can help instantiate the RPN model from its configuration file.
Attributes:
Name | Type | Description |
---|---|---|
name |
str, default = 'rpn_config'
|
Name of the rpn_config object. |
Methods:
Name | Description |
---|---|
__init__ |
The rpn_config initialization method. |
instantiate_object_from_config |
The rpn objects instantiation method from the configuration. |
extract_config_from_object |
The rpn configuration extraction method from the rpn objects. |
Source code in tinybig/config/rpn_config.py
__init__(name='rpn_config')
The rpn config initialization method.
It initializes the rpn config object based on the provided parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
Name of the rpn configuration object. |
'rpn_config'
|
Source code in tinybig/config/rpn_config.py
extract_config_from_object(objects, *args, **kwargs)
staticmethod
The rpn configuration extraction method from the rpn objects.
It extracts the rpn object configuration and return it as a confi dictionary.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
objects |
The rpn model and component object. |
required |
Returns:
Type | Description |
---|---|
dict
|
The configuration information of the input object. |
Source code in tinybig/config/rpn_config.py
instantiate_object_from_config(configs)
staticmethod
The rpn object instantiation method from the configuration.
It initializes a rpn object from its detailed configuration information.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
configs |
dict
|
The rpn object detailed configuration. |
required |
Returns:
Type | Description |
---|---|
dict
|
The initialized object dictionary based on the configs. |