modeci_mdf.functions.onnx.predict_with_onnxruntime
- modeci_mdf.functions.onnx.predict_with_onnxruntime(model_def, *inputs) Dict[str, array] [source]
Simple helper to run an ONNX model with a set of inputs.
- Parameters:
model_def – The ONNX model to run.
*inputs – Input values to pass to the model.
- Returns:
A dict of output values, keys are output names for the model. Values are the output values of the model.