첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
import tensorflow as tf

x = tf.constant(1, name = "x")
y = tf.Variable(x + 9, name = "y")

model = tf.global_variables_initializer()

with tf.Session() as sess:
    sess.run(model)
    result = sess.run(y)
    print(result)

[결과]

10
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요