Skip to content

Instantly share code, notes, and snippets.

@irdanish11
Created July 8, 2020 11:23
Show Gist options
  • Select an option

  • Save irdanish11/d746fda984dc51336ea0133de68fabb0 to your computer and use it in GitHub Desktop.

Select an option

Save irdanish11/d746fda984dc51336ea0133de68fabb0 to your computer and use it in GitHub Desktop.
@tf.function
def f():
a = tf.constant([[10,10],[11.,1.]])
x = tf.constant([[1.,0.],[0.,1.]])
b = tf.Variable(12.)
y = tf.matmul(a, x) + b
print("PRINT: ", y)
tf.print("TF-PRINT: ", y)
return y
f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment