IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo struct

ConvInfoStatic

struct ConvInfoStatic[rank: Int]

Holds statically known convolution attributes (padding, stride, dilation, groups).

Stores the attributes in flattened form and reports whether every field is known at compile time, enabling micro-kernel shape specialization.

Parameters

  • rank (Int): Spatial rank of the convolution (1, 2, or 3).

Fields

  • pad (IntTuple):
  • stride (IntTuple):
  • dilation (IntTuple):
  • num_groups (Int):

Implemented traits

AnyType, Defaultable, Deinitable, Movable

Methods

__init__

def __init__(out self, pad: IntTuple, stride: IntTuple, dilation: IntTuple, num_groups: Int)

def __init__(out self)

def __init__(out self, pad: IntTuple, stride: IntTuple, dilation: IntTuple, input_c: Int, filter_c: Int)

all_known

def all_known(self) -> Bool

Returns:

Bool

pad_left

def pad_left(self) -> Int

Returns:

Int

pad_bottom

def pad_bottom(self) -> Int

Returns:

Int

strides

def strides(self) -> IndexList[Int(2)]

Returns:

IndexList[Int(2)]

dilations

def dilations(self) -> IndexList[Int(2)]

Returns:

IndexList[Int(2)]