TensorStore
tensorstore.OutputIndexMap.__init__(input_dimension)
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
        • Core
        • Indexing
          • V inf
          • C IndexDomain
          • C IndexTransform
          • C Dim
          • C OutputIndexMap
            • Constructors
              • M __init__(constant)
              • M __init__(input_dimension)
              • M __init__(index_array)
            • Public members
          • C OutputIndexMaps
          • C OutputIndexMethod
          • C DimExpression
          • C DimSelection
          • M d
          • V newaxis
          • C Indexable
          • V NumpyIndexTerm
          • V NumpyIndexingSpec
          • V DimSelectionLike
        • Spec
        • Views
        • Data types
        • Asynchronous support
        • OCDBT
        • Experimental
      • API reference
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    tensorstore.OutputIndexMap(input_dimension: SupportsInt, offset: SupportsInt = 0, stride: SupportsInt = 1)

    Constructs a single input dimension map.

    Example

    >>> transform = ts.IndexTransform(
    ...     input_rank=1,
    ...     output=[ts.OutputIndexMap(input_dimension=0, offset=5, stride=2)])
    >>> [transform([i]) for i in range(5)]
    [(5,), (7,), (9,), (11,), (13,)]