Skip to main content

ArcTensor

Type Alias ArcTensor 

Source
pub type ArcTensor<T> = TensorBase<Arc<Vec<T>>, DynLayout>;
Expand description

Reference-counted tensor with a dynamic dimension count.

This uses Arc<Vec<T>> rather than Arc<[T]> as the backing storage. This adds an extra indirection when accessing the data, but it enables cheap conversion between owned and reference-counted tensors.

Aliased Typeยง

pub struct ArcTensor<T> { /* private fields */ }