Add the given value to all elements in the tensor.