You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repr_dataset: Representative dataset for tracing the pytorch model (mandatory for exporting it).
63
-
is_layer_exportable_fn: Callable to check whether a layer can be exported or not.
64
-
serialization_format: Format to export the model according to (by default
65
-
PytorchExportSerializationFormat.ONNX).
66
-
quantization_format: Format of how quantizers are exported (fakely-quant, int8, MCTQ quantizers).
67
-
onnx_opset_version: ONNX opset version to use for exported ONNX model.
61
+
model (Module): Model to export.
62
+
save_model_path (str): Path to save the model.
63
+
repr_dataset (Callable): Representative dataset for tracing the pytorch model (mandatory for exporting it).
64
+
is_layer_exportable_fn (Callable): Callable to check whether a layer can be exported or not.
65
+
serialization_format (PytorchExportSerializationFormat): Format to export the model according to (by default PytorchExportSerializationFormat.ONNX).
66
+
quantization_format (QuantizationFormat): Format of how quantizers are exported (fakely-quant, int8, MCTQ quantizers).
67
+
onnx_opset_version (int): ONNX opset version to use for exported ONNX model.
68
+
output_names (Optional[List[str]]): Optional list of output node names for export compatibility. This argument is relevant only when using PytorchExportSerializationFormat.ONNX.
68
69
69
70
"""
70
71
# Ensure 'metadata' is available directly on the model, if present in submodules
0 commit comments