Module shape

Source
Expand description

The Shape type and utilities.

Structs§

ConcreteShape
A shape with each dimension being a fixed usize.
Shape
A shape with each dimension corresponding to Size.
Size
A size expression of the form F * pow(batch_size, N).

Enums§

DivResult
ShapeMismatch

Functions§

infer_batch_size
Infer what the batch size should be for the given input shapes.
infer_batch_size_dims
Same as infer_batch_size, except for individual dimensions.