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

Implemented traits​

AnyType, ImplicitlyDestructible

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[Output, static_spec=out_buf.static_spec], lhs_buf: ManagedTensorSlice[Input, static_spec=lhs_buf.static_spec], rhs_buf: ManagedTensorSlice[Input, static_spec=rhs_buf.static_spec])

shape​

static def shape(lhs_buf: ManagedTensorSlice[Input, static_spec=lhs_buf.static_spec], rhs_buf: ManagedTensorSlice[Input, static_spec=rhs_buf.static_spec]) -> IndexList[1]

Returns:

IndexList[1]