Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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))
Add Comment
Please, Sign In to add comment