tf2报错解决 assertion failed: [predictions must be >= 0] [Condition x >= y did not hold element-wise:]
环境: tf2完整报错如下:tensorflow.python.framework.errors_impl.InvalidArgumentError: assertion failed: [predictions must be >= 0] [Condition x >= y did not hold element-wise:] [x (sub_2:0) = ] [[-nan][-nan][-nan]...] [y (Cast_2/x:0) = ] [0]