Tensorflow API 정리

Tensorflow API 정리

| 공개

 

import tensorflow as tf

# graph build

tf.__version__

hello = tf.constant("Hello, TensorFlow!")

# graph init

sess = tf.Session()

 

# graph run

sess.run(hello)

sess.close()

 

import tensorflow as tf

tf.__version__

hello = tf.constant("Hello, TensorFlow!")

with tf.Session() as sess:

sess.run(hello)

 

http://pythonkim.tistory.com/8?category=573319

 

댓글

댓글 본문
작성자
비밀번호
graphittie 자세히 보기