2019-09-01 18:43:38 +08:00

16 lines
206 B
Python

import tensorflow as tf
a = tf.constant(1)
b = tf.constant(2)
c = tf.constant(3)
d = tf.constant(3)
@tf.function
def calculate():
return ((a + b) * c)**3
result = calculate()
print(result.numpy())