Skip to content

Instantly share code, notes, and snippets.

@anandanand84
Created April 24, 2017 16:42
Show Gist options
  • Save anandanand84/f0ee66bd437f94c00aa5a191aef965cf to your computer and use it in GitHub Desktop.
Save anandanand84/f0ee66bd437f94c00aa5a191aef965cf to your computer and use it in GitHub Desktop.
Prediction of normalized data from tensorflow
#Actaul inference
square_sum = tf.reduce_sum(tf.square(x), axis=1, keep_dims=True)
sqrt = tf.sqrt(square_sum)
inv_sqrt = tf.rsqrt(square_sum)
normalized = tf.multiply(x, inv_sqrt)
infer_pred = BiRNN(normalized, weights, biases)
trend = tf.multiply(infer, sqrt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment