Skip to content

Instantly share code, notes, and snippets.

@alexbw
Created July 17, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbw/ef26030d4a8ebf5488ee1b7d420ec408 to your computer and use it in GitHub Desktop.
Save alexbw/ef26030d4a8ebf5488ee1b7d420ec408 to your computer and use it in GitHub Desktop.
Calling the converted Huber loss code
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