Add eps to normalization (#797)

This commit is contained in:
Tim Zaman
2019-04-05 14:46:01 -07:00
committed by pzhokhov
parent c79b3373bf
commit 49a99c7d23

View File

@@ -17,7 +17,7 @@ except ImportError:
def normalize(x, stats):
if stats is None:
return x
return (x - stats.mean) / stats.std
return (x - stats.mean) / (stats.std + 1e-8)
def denormalize(x, stats):