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

TypeAndShape¶

class onnx_ir.TypeAndShape(type: TypeProtocol | None, shape: Shape | None)¶

Type and shape.

Useful for constructing a type proto.

type: TypeProtocol | None¶
shape: Shape | None¶
Next
TensorType
Previous
SymbolicDim
Copyright © ONNX Contributors. All rights reserved.
Made with Sphinx and @pradyunsg's Furo
On this page
  • TypeAndShape
    • TypeAndShape
      • TypeAndShape.type
      • TypeAndShape.shape