Skip to main content

Module storage

Module storage 

Source
Expand description

Storage — static link between a Rust storage type and its IR TypeNode. Library makers declare where in the polymorphism tree their concrete sits by picking the Storage impl for their associated type.

Structs§

AnyTensor
Concrete-erased tensor. Stores raw bytes plus a runtime-known dtype + shape. Compute-outsourcing concretes (an index that delegates distance math to a bound Backend) declare type Vector = AnyTensorStorage::TYPE = &TYPE_TENSOR puts the value at a non-leaf position in the tree, so any tensor subtype unifies into it.

Enums§

Dtype
Runtime dtype tag for AnyTensor and any caller that needs to dispatch over the framework’s known tensor dtypes.

Traits§

Storage
Static link between a Rust storage type and its IR TypeNode.