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]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!