#!/usr/bin/env python3
#! -*- coding: utf-8 -*-

import tensorflow as tf

with tf.name_scope('graph') as scope:   # f.name_scope函数是作用域名?
    matrix1 = tf.constant([[3., 3.]], name="matrix1")
    matrix2 = tf.constant([[2.], [2.]], name="matrix2")
    product = tf.matmul(matrix1, matrix2, name="product")

sess = tf.Session()

writer = tf.summary.FileWriter("logs/", sess.graph)   # 这句话是什么意思?暂时先不管,先把他跑通

init = tf.global_variables_initializer()

sess.run(init)
sess.run(product)
e5de617f233b03799e6d0acb1096c4e653094846
<mask token>

<mask token>
with tf.name_scope('graph') as scope:
    matrix1 = tf.constant([[3.0, 3.0]], name='matrix1')
    matrix2 = tf.constant([[2.0], [2.0]], name='matrix2')
    product = tf.matmul(matrix1, matrix2, name='product')
<mask token>
sess.run(init)
sess.run(product)

<mask token>
with tf.name_scope('graph') as scope:
    matrix1 = tf.constant([[3.0, 3.0]], name='matrix1')
    matrix2 = tf.constant([[2.0], [2.0]], name='matrix2')
    product = tf.matmul(matrix1, matrix2, name='product')
sess = tf.Session()
writer = tf.summary.FileWriter('logs/', sess.graph)
init = tf.global_variables_initializer()
sess.run(init)
sess.run(product)

import tensorflow as tf
with tf.name_scope('graph') as scope:
    matrix1 = tf.constant([[3.0, 3.0]], name='matrix1')
    matrix2 = tf.constant([[2.0], [2.0]], name='matrix2')
    product = tf.matmul(matrix1, matrix2, name='product')
sess = tf.Session()
writer = tf.summary.FileWriter('logs/', sess.graph)
init = tf.global_variables_initializer()
sess.run(init)
sess.run(product)

#!/usr/bin/env python3
#! -*- coding: utf-8 -*-

import tensorflow as tf

with tf.name_scope('graph') as scope:   # f.name_scope函数是作用域名?
    matrix1 = tf.constant([[3., 3.]], name="matrix1")
    matrix2 = tf.constant([[2.], [2.]], name="matrix2")
    product = tf.matmul(matrix1, matrix2, name="product")

sess = tf.Session()

writer = tf.summary.FileWriter("logs/", sess.graph)   # 这句话是什么意思?暂时先不管,先把他跑通

init = tf.global_variables_initializer()

sess.run(init)
sess.run(product)