File IO
Input Bounds
Keras Reader
ONNX
- omlt.io.onnx.load_onnx_neural_network(onnx, scaling_object=None, input_bounds=None)[source]
Load a NetworkDefinition from an onnx object.
- Parameters:
onnx – onnx model
scaling_object (instance of object supporting ScalingInterface) –
input_bounds (list of tuples) –
- Return type:
- omlt.io.onnx.load_onnx_neural_network_with_bounds(filename)[source]
Load a NetworkDefinition with input bounds from an onnx object.
- Parameters:
filename (str) – the path where the ONNX model and input bounds file are written
- Return type: