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

ReduceGroupNorm

struct ReduceGroupNorm

Registers the mo.reduce.group_norm graph op with the graph compiler.

Implemented traits​

AnyType, Deinitable, Movable

Methods​

execute​

static def execute(output: T, input: T, gamma: T, beta: T, epsilon: Float32, num_groups: Int32, ctx: DeviceContext)

Executes the mo.reduce.group_norm graph op.

Args:

  • ​output (T): Output tensor receiving the result.
  • ​input (T): Input tensor to reduce.
  • ​gamma (T): Per-column scale weights.
  • ​beta (T): Per-column shift weights.
  • ​epsilon (Float32): Small constant for numerical stability.
  • ​num_groups (Int32): Number of groups for group normalization.
  • ​ctx (DeviceContext): Device context used to enqueue the kernel.

Raises:

Error: If the operation parameters are invalid.

Was this page helpful?