Created
July 17, 2018 16:35
-
-
Save alexbw/ef26030d4a8ebf5488ee1b7d420ec408 to your computer and use it in GitHub Desktop.
Calling the converted Huber loss code
This file contains 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
with tf.Graph().as_default(): | |
x_tensor = tf.constant(9.0) | |
# The converted function works like a regular op: tensors in, tensors out. | |
huber_loss_tensor = huber_loss(x_tensor) | |
with tf.Session() as sess: | |
print('TensorFlow result: %2.2f\n' % sess.run(huber_loss_tensor)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment