Is there a convenient way to replace all occurrences of 0 in an Tensor with 1?
I’d like to normalize my data but the std deviation of some features may happen to be 0 and since we’re dividing by it I’d like to avoid division by zero errors by replacing those zeros.