qonnx.util.exec_qonnx (module)

qonnx.util.exec_qonnx.exec_qonnx(qonnx_model_file, *in_npy, override_opset: Optional[int] = None, output_prefix: str = 'out_')

Execute a given QONNX model by initializing its inputs from .npy files, and write outputs as .npy files. The input model have been previously cleaned by the cleanup transformation or commandline tool.

Parameters
  • qonnx_model_file – Filename for the input ONNX model

  • in_npy – List of .npy files to supply as inputs. If not specified, inputs will be set to zero.

  • override_opset – If specified, override the imported ONNX opset to this version.

  • output_prefix – Prefix for the generated output files.

qonnx.util.exec_qonnx.main()