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.2.2 documentation
Light Logo Dark Logo
  • Overview
  • Getting started with ONNX IR 🌱
  • Tensor Representation in the IR
  • Multi-Device Configurations
  • IR APIs
    • onnx_ir
      • load
      • save
      • save_safetensors
      • from_proto
      • from_onnx_text
      • to_proto
      • to_onnx_text
      • tensor
      • val
      • node
      • set_value_magic_handler
      • TensorProtocol
      • Value
      • Node
      • Graph
      • Model
      • GraphView
      • Function
      • Attr
      • Shape
      • SymbolicDim
      • TypeAndShape
      • TensorType
      • SparseTensorType
      • SequenceType
      • OptionalType
      • Tensor
      • ExternalTensor
      • StringTensor
      • LazyTensor
      • PackedTensor
      • ModelConfiguration
      • NodeDeviceConfiguration
      • ShardingSpec
      • ShardedDim
      • SimpleShardedDim
      • IndexToDeviceGroupMapEntry
      • DataType
      • AttributeType
      • GraphInitializers
      • Attributes
      • MetadataStore
    • onnx_ir.convenience
    • onnx_ir.external_data
    • onnx_ir.passes
      • PassBase
      • InPlacePass
      • FunctionalPass
      • Sequential
      • PassResult
      • PassManager
    • onnx_ir.passes.common
    • onnx_ir.analysis
    • onnx_ir.traversal
    • onnx_ir.tape
    • onnx_ir.tensor_adapters
      • TorchTensor
    • onnx_ir.schemas
    • onnx_ir.journaling
Back to top
View this page

ShardedDim¶

class onnx_ir.ShardedDim(axis, simple_shardings=())¶

The sharding of a single tensor axis.

Added in version 1.0.0.

Parameters:
  • axis (int)

  • simple_shardings (tuple[SimpleShardedDim, ...])

simple_shardings: tuple[SimpleShardedDim, ...] = ()¶
axis: int¶
Next
SimpleShardedDim
Previous
ShardingSpec
Copyright © ONNX Contributors. All rights reserved.
Made with Sphinx and @pradyunsg's Furo
On this page
  • ShardedDim
    • ShardedDim
      • ShardedDim.simple_shardings
      • ShardedDim.axis