Mojo struct
ImageShape
struct ImageShape
A data-layout agnostic representation of tensor shapes used in conv2d.
Fieldsβ
- βN (
Int): - βC (
Int): - βH (
Int): - βW (
Int):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methodsβ
__init__β
__init__[dtype: DType, image_layout: Image2DLayout](image_data: ImageData[dtype, image_layout]) -> Self
Constructor of an ImageShape instance from an ImageData.
Args:
- βimage_data (
ImageData[dtype, image_layout]): The image data instance to extract shape info from.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!