Skip to main content

Mojo function

scatter_nd_shape

scatter_nd_shape[input_type: DType, indices_type: DType, single_thread_blocking_override: Bool](input: TileTensor[input_type, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types], updates: TileTensor[input_type, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types], indices: TileTensor[indices_type, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types]) -> IndexList[TileTensor[input_type, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types].rank]

Compute the output shape of a scatter_nd 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:

Returns:

IndexList: The output shape.

Was this page helpful?