hyrax.verbs.engine#
Attributes#
Classes#
This verb drives inference with an ONNX model in production. |
Module Contents#
- class Engine(config)[source]#
Bases:
hyrax.verbs.verb_registry.VerbThis verb drives inference with an ONNX model in production.
Overall initialization for all verbs that saves the config
- run(model_directory: str = None)[source]#
[x] Read in the user config [x] Prepare all the datasets requested [x] Implement a simple strategy for reading in batches of data samples [x] Process the samples with any custom collate functions as well as a default collate function [x] Pass the collated batch to the appropriate to_tensor function [x] Send that output to the ONNX-ified model [x] Persist the results of inference.