Skip to content

Instantly share code, notes, and snippets.

@sol0invictus
Created March 11, 2020 20:58
Show Gist options
  • Save sol0invictus/63dbed76a6d8c30ad757172f8ca7b6fd to your computer and use it in GitHub Desktop.
Save sol0invictus/63dbed76a6d8c30ad757172f8ca7b6fd to your computer and use it in GitHub Desktop.
y_hat = tf.constant(36) # Define y_hat constant. Set to 36.
y = tf.constant(39) # Define y. Set to 39
loss = tf.Variable((y - y_hat)**2, name='loss')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment