Type Alias coaster::tensor::TensorDesc

source ·
pub type TensorDesc = Vec<usize>;
Expand description

Describes the Descriptor of a SharedTensor.

Aliased Type§

struct TensorDesc { /* private fields */ }

Trait Implementations§

source§

impl ITensorDesc for TensorDesc

source§

fn rank(&self) -> usize

Returns the rank of the Tensor. Read more
source§

fn size(&self) -> usize

Returns the summed up length of all dimensions of the Tensor. Read more
source§

fn dims(&self) -> &Vec<usize>

Returns the dimensions of the Tensor. Read more
source§

fn dims_i32(&self) -> Vec<i32>

Returns the dimensions of the Tensor as Vec.
source§

fn default_stride(&self) -> Vec<usize>

Returns the default stride for an Rust allocated Tensor. Read more
source§

fn default_stride_i32(&self) -> Vec<i32>

Returns the default stride for a Rust allocated Tensor as i32.