TensorStore
tensorstore::ModeCast[runtime]
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
          • CBatch
          • CTransaction
          • CContext
          • CSchema
          • CSpec
          • CTensorStore
            • Types
            • Data members
            • Constructors
            • Methods
            • Friend functions
            • Related Types
            • Related Functions
              • FModeCast
              • FWrite
              • FCopy
              • FCast
              • FOpen
            • I/O
            • Related Constants
        • Indexing
        • Data types
        • Array
        • Key-value storage
        • Downsampling
        • Utilities
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    #include "tensorstore/tensorstore.h"
    template <typename Element,
             
     DimensionIndex Rank,
             
     ReadWriteMode ExistingMode>
    Result<TensorStore<Element, Rank>>
    tensorstore::ModeCast(TensorStore<Element, Rank, ExistingMode> store,
                          
    ReadWriteMode new_mode);

    Changes the ReadWriteMode of store to the specified new_mode.

    If new_mode == ReadWriteMode::dynamic, the existing mode is unchanged.

    Back to top
    Previous tensorstore::TensorWriter
    Next tensorstore::Write[Array, TensorStore]