Skip to main content

Module slice_manager

Module slice_manager 

Source
Expand description

TensorSliceManager — named tensor slice management with copy-on-write semantics, bounds checking, and overlap detection.

§Overview

A TensorSliceManager owns a TensorShape that describes the overall tensor dimensions and a registry of named TensorSlices. Each slice is a contiguous sub-region described by a SliceSpec (per-dimension [start, end) ranges) and carries its own flattened f32 data buffer together with a version counter and a dirty flag that supports copy-on-write workflows.

Structs§

SliceManagerStats
Aggregate statistics for a TensorSliceManager.
SliceSpec
Describes a per-dimension [start, end) range that selects a contiguous sub-region of a tensor.
TensorShape
Describes the shape of a multi-dimensional tensor in C (row-major) order.
TensorSlice
A named, versioned, copy-on-write slice of a tensor.
TensorSliceManager
Registry that manages named slices of a fixed-shape tensor.