"""
Created on Tue Nov 20 23:23:35 2018
#QQ群:476842922(欢迎加群讨论学习)
@author: Administrator
"""
# -*- coding: utf-8 -*-
import tensorflow as tf
g1 = tf.Graph()
with g1.as_default():
c1 = tf.constant(4.0)
with tf.Session(graph=g1) as sess1:
print(sess1.run(c1))
runfile(‘C:/Users/Administrator/untitled11.py’, wdir=‘C:/Users/Administrator’)
4.0