Mojo function
batched_matmul_shape
batched_matmul_shape[rank: Int](a_buff: TileTensor[a_buff.dtype, a_buff.LayoutType, a_buff.origin, address_space=a_buff.address_space, linear_idx_type=a_buff.linear_idx_type, element_size=a_buff.element_size], b_buff: TileTensor[b_buff.dtype, b_buff.LayoutType, b_buff.origin, address_space=b_buff.address_space, linear_idx_type=b_buff.linear_idx_type, element_size=b_buff.element_size]) -> IndexList[rank]
Compute the output shape of a batch_matmul operation, and assert the inputs are compatible.
Parameters:
- โrank (
Int): Rank of the input and output tensors.
Args:
- โa_buff (
TileTensor): The lhs input tensor. - โb_buff (
TileTensor): The rhs input tensor.
Returns:
IndexList: The output shape.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!