In Python we could do this tensor[tensor==0] = 1 How to this operation with at::Tensor in C++??
tensor[tensor==0] = 1
at::Tensor