mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
16 lines
206 B
Python
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())
|