ImageLayout
Memory layout for image tensor data.
Different frameworks use different conventions for storing image data:
PyTorch typically uses CHW (channels first)
TensorFlow typically uses HWC (channels last)
Batched versions add a batch dimension at the front
Properties
Index of the channel dimension in the shape array.
Returns a representation of an immutable list of all enum entries, in the order they're declared.
Expected tensor rank for this layout.
Index of the height dimension in the shape array.
Whether channels are the first spatial dimension (after batch if present).
Functions
Convert to batched version of this layout.
Convert to unbatched version of this layout.
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.