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

1. 아래 코드를 실행한다.

import tensorflow as tf

a = tf.constant(10, name = "a")
b = tf.constant(90, name = "b")

y = tf.Variable(a + b * 2, name = "y")

model = tf.global_variables_initializer()

with tf.Session() as session:

    merged = tf.summary.merge_all()
    
    writer = tf.summary.FileWriter("/tmp/tensorflowlogs", session.graph)
    
    session.run(model)
    
    print(session.run(y))

 

728x90

 

2. Anaconda Prompt를 실행하고 아래 스크립트를 실행한다.

tensorboard --logdir=/tmp/tensorflowlogs

 

300x250

 

3. 웹 브라우저를 실행하고 아래 URL을 입력한다.

http://127.0.0.1:6006

또는

http://호스트명:6006
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요