Mojo function
scatter_elements_shape
scatter_elements_shape[input_type: DType, indices_type: DType, //, *, single_thread_blocking_override: Bool](input: TileTensor[input_type, input.LayoutType, input.origin, address_space=input.address_space, linear_idx_type=input.linear_idx_type, element_shape_types=input.element_shape_types], updates: TileTensor[input_type, updates.LayoutType, updates.origin, address_space=updates.address_space, linear_idx_type=updates.linear_idx_type, element_shape_types=updates.element_shape_types], indices: TileTensor[indices_type, indices.LayoutType, indices.origin, address_space=indices.address_space, linear_idx_type=indices.linear_idx_type, element_shape_types=indices.element_shape_types], axis: Int) -> IndexList[TileTensor[input_type, input.LayoutType, input.origin, address_space=input.address_space, linear_idx_type=input.linear_idx_type, element_shape_types=input.element_shape_types].rank]
Compute the output shape of a scatter_elements operation, and assert the inputs are compatible.
Parameters:
- input_type (
DType): Type of the input tensor. - indices_type (
DType): Type of the indices tensor. - single_thread_blocking_override (
Bool): If True, then the operation is run synchronously using a single thread.
Args:
- input (
TileTensor): The input tensor. - updates (
TileTensor): The input tensor. - indices (
TileTensor): The indices tensor. - axis (
Int): The axis.
Returns:
IndexList: The output shape.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!