What's Changed
API changes
- Introduced the
output_names
argument inpytorch_export_model
. This optional parameter specifies a list of output node names for export compatibility and is applicable only when usingPytorchExportSerializationFormat.ONNX
. - Usage example: To set the model output names, use the
output_names
argument:
mct.exporter.pytorch_export_model(
model=quantized_exportable_model,
save_model_path=onnx_file_path,
repr_dataset=representative_data_gen,
output_names=['model_output'])
- Now the output name (i.e., the name of the output layer in the exported ONNX model) will be
model_output
, instead of the default nameoutput
, which would be assigned ifoutput_names
is not specified.