get_obj_from_str
The object initiation from strings.
It will initiate an object according to the class description as a string.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
string |
str
|
The object class description as a string, e.g., "tinybig.expansion.bspline_expansion" and "torch.nn.functional.sigmoid" |
required |
reload |
bool
|
The module reloading boolean tag. |
False
|
Returns:
Type | Description |
---|---|
object
|
The initiated object of the corresponding class described by the input parameter "string". |