Inplace version of masked_scatter API, the output Tensor will be inplaced with input x. Please refer to masked_scatter.
masked_scatter
x