mindspore.ops.MaskedFill

class mindspore.ops.MaskedFill[source]
prim = ops.MaskedFill()
out = prim(input_x, mask, value)

is equivalent to

ops.masked_fill(input_x, mask, value)

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