Created
November 3, 2016 14:43
-
-
Save BinRoot/d502415ffacb53de5d7f8148b03dcc5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
# Define an arbitrary tensor | |
x = tf.constant([[1, 2]]) | |
# Negate the tensor | |
neg_x = tf.neg(x) | |
# Print the object | |
print(neg_x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment