public MinMaxNorm(TensorOld tensor) { Min = tensor.Min(); Max = tensor.Max(); Denom = Max - Min; if (Denom == 0) { throw new Exception("max=min"); } }