Registry
create_register_decorator(registry)
Create a decorator that registers object of specified type (model, metric, ...)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
registry |
Dict[str, Callable]
|
Dict including registered objects (maps name to object that you register) |
required |
Returns:
Type | Description |
---|---|
Callable
|
Register function |
Source code in latest/src/super_gradients/common/registry/registry.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|