Mojo function
tile_shape
tile_shape[input_type: DType, repeats_type: DType](input_buf: TileTensor[input_type, input_buf.LayoutType, input_buf.origin, address_space=input_buf.address_space, linear_idx_type=input_buf.linear_idx_type, element_size=input_buf.element_size], repeats_buf: TileTensor[repeats_type, repeats_buf.LayoutType, repeats_buf.origin, address_space=repeats_buf.address_space, linear_idx_type=repeats_buf.linear_idx_type, element_size=repeats_buf.element_size]) -> IndexList[TileTensor[input_type, input_buf.LayoutType, input_buf.origin, address_space=input_buf.address_space, linear_idx_type=input_buf.linear_idx_type, element_size=input_buf.element_size].rank]
Compute the output shape of a tile operation, and assert the inputs are compatible.
Parameters:
- βinput_type (
DType): Type of the input tensor. - βrepeats_type (
DType): Type of the repeats tensor.
Args:
- βinput_buf (
TileTensor): The input tensor. - βrepeats_buf (
TileTensor): The repeats 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!