For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
nan_check_raise
def nan_check_raise[label: StaticString, type_str: StaticString](nan_count: TileTensor[.int32, Engine=nan_count.Engine, address_space=nan_count.address_space, linear_idx_type=nan_count.linear_idx_type], inf_count: TileTensor[.int32, Engine=inf_count.Engine, address_space=inf_count.address_space, linear_idx_type=inf_count.linear_idx_type])
Raises an error if NaN or Inf counts are non-zero.
Reads two single-element int32 tensors on the host and raises a diagnostic error if either is > 0.