Skip to content

Instantly share code, notes, and snippets.

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