to_onnx_text¶

onnx_ir.to_onnx_text(model, /, exclude_initializers=False)¶

Convert the IR model to the ONNX textual representation.

Parameters:
  • model (ModelProtocol) – The IR model to convert.

  • exclude_initializers (bool) – If True, the initializers will not be included in the output.

Returns:

The ONNX textual representation of the model.

Return type:

str