Serve
Main serve script.
main(cfg)
#
Main entry point for serving.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cfg
|
DictConfig
|
DictConfig configuration composed by Hydra. |
required |
Returns:
Type | Description |
---|---|
None
|
Optional[float] with optimized metric value. |
Source code in src/serve.py
40 41 42 43 44 45 46 47 48 49 50 |
|
serve(cfg)
#
Serve the specified model in the configuration as a FastAPI api.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cfg
|
DictConfig
|
A DictConfig configuration composed by Hydra. |
required |
Returns:
Type | Description |
---|---|
None
|
A tuple with metrics and dict with all instantiated objects. |
Source code in src/serve.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|