Skip to main content

DimOrder

Type Alias DimOrder 

Source
pub type DimOrder = Shape;
Expand description

The order a tensor’s dimensions appear in memory, outermost first.

[0, 1, 2, 3] is contiguous NCHW; [0, 2, 3, 1] is NHWC. This is the same convention as the permutation passed to Tensor::permute.

Aliased Type§

pub struct DimOrder { /* private fields */ }