Skip to content
TensorStore
tensorstore.Context.__init__(spec)
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
        • Core
          • C TensorStore
          • C Context
            • Constructors
              • M __init__(default)
              • M __init__(spec)
                • Parameters
                  • p spec
                  • p parent
              • M __init__(json)
            • Classes
            • Accessors
          • C KvStore
          • C Transaction
          • C Batch
          • F open
        • Indexing
        • 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
    • Parameters
      • p spec
      • p parent
    tensorstore.Context(spec: Context.Spec, parent: Context | None = None)

    Constructs a context from a parsed spec.

    Parameters:¶
    spec: Context.Spec¶

    Parsed context spec.

    parent: Context | None = None¶

    Parent context from which to inherit. Defaults to a new default context as returned by tensorstore.Context().