mindspore.ops.NanToNum

class mindspore.ops.NanToNum(nan=None, posinf=None, neginf=None)[source]
prim = ops.NanToNum(nan, posinf, neginf)
out = prim(input)

is equivalent to

ops.nan_to_num(input, nan, posinf, neginf)

Refer to mindspore.ops.nan_to_num() for more details.