IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 struct

NanCheckRaiseOp

struct NanCheckRaiseOp

Raises an error if NaN or Inf counts are non-zero.

See nn.nan_check for implementation details.

Implemented traitsโ€‹

AnyType, ImplicitlyDeletable

Methodsโ€‹

executeโ€‹

static def execute[target: StringSlice[ImmStaticOrigin], _trace_name: StringSlice[ImmStaticOrigin] = StringSlice(""), label: StringSlice[ImmStaticOrigin] = StringSlice(""), type_str: StringSlice[ImmStaticOrigin] = StringSlice("")](nan_count: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=nan_count.static_spec], inf_count: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=inf_count.static_spec], ctx: DeviceContext)