Give a warning instead of an error when encountering negative tensors while logging. replace by 0 tensor value.