Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
onnx_ir 0.1.1 documentation
Light Logo Dark Logo
  • Overview
  • Getting started with ONNX IR 🌱
  • Tensor Representation in the IR
  • IR APIs
    • onnx_ir
      • load
      • save
      • from_proto
      • from_onnx_text
      • to_proto
      • tensor
      • node
      • TensorProtocol
      • Value
      • Node
      • Graph
      • Model
      • GraphView
      • Function
      • Attr
      • Shape
      • SymbolicDim
      • TypeAndShape
      • TensorType
      • SparseTensorType
      • SequenceType
      • OptionalType
      • Tensor
      • ExternalTensor
      • StringTensor
      • LazyTensor
      • DataType
      • AttributeType
    • onnx_ir.convenience
    • onnx_ir.external_data
    • onnx_ir.passes
      • PassBase
      • InPlacePass
      • FunctionalPass
      • Sequential
      • PassResult
      • PassManager
    • onnx_ir.passes.common
    • onnx_ir.traversal
    • onnx_ir.tape
Back to top
View this page

from_onnx_text¶

onnx_ir.from_onnx_text(model_text: str, /) → Model¶

Convert the ONNX textual representation to an IR model.

Read more about the textual representation at: https://onnx.ai/onnx/repo-docs/Syntax.html

Next
to_proto
Previous
from_proto
Copyright © ONNX Contributors. All rights reserved.
Made with Sphinx and @pradyunsg's Furo
On this page
  • from_onnx_text
    • from_onnx_text()