Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tensorflow as tf
- a = tf.constant(1,tf.int32);
- b = tf.constant(1,tf.int32);
- c = tf.add(a,b);
- print(c);
- import tensorflow as tf
- tf.enable_eager_execution();
- a = tf.constant(1, tf.int32);
- b = tf.constant(1, tf.int32);
- @tf.function()
- def sum(i,j):
- c = tf.add(i,j);
- return c;
- print(sum(a,b));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement