IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/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. /max/get-started.md).

Mojo struct

BroadcastShape

struct BroadcastShape

Registers the mo.broadcast_shape graph op with the graph compiler.

Implemented traits​

AnyType, ImplicitlyDeletable

Methods​

broadcast_shape_impl​

static def broadcast_shape_impl(out_buf: ManagedTensorSlice[static_spec=out_buf.static_spec], lhs_buf: ManagedTensorSlice[static_spec=lhs_buf.static_spec], rhs_buf: ManagedTensorSlice[static_spec=rhs_buf.static_spec])

execute​

static def execute(out_buf: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=out_buf.static_spec], lhs_buf: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=lhs_buf.static_spec], rhs_buf: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=rhs_buf.static_spec])

Was this page helpful?