model_configs
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/model_configs.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
|
__init__(configs=None, parameters=None, name='rpn_config', layer_configs=None, depth=None, depth_alloc=None, device='cpu', *args, **kwargs)
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'
|