utils.py 142 B

1234567
  1. import tensorflow as tf
  2. def normalize(x, mean, std):
  3. mean = tf.constant(mean)
  4. std = tf.constant(std)
  5. return (x - mean) / std