代码拉取完成,页面将自动刷新
# -*- coding: utf-8 -*-
__author__ = 'Gui'
'''
@Time : 2022/6/5 18:21
@Author : Gui
@File : fira_view_network.py
@Software: PyCharm
'''
# import tensorflow as tf
#
#
# g = tf.Graph()
# with g.as_default() as g:
# tf.train.import_meta_graph('-82.meta')
#
# with tf.Session(graph=g) as sess:
# file_writer = tf.summary.FileWriter(logdir='-82', graph=g)
# ckpt_path = '-82'
#
# saver = tf.train.import_meta_graph(ckpt_path + '.meta', clear_devices=True)
# graph = tf.get_default_graph()
# with tf.Session(graph=graph) as sess:
# sess.run(tf.global_variables_initializer())
# saver.restore(sess, ckpt_path)
import tensorflow as tf
from tensorflow.python.platform import gfile
graph = tf.get_default_graph()
graphdef = graph.as_graph_def()
_ = tf.train.import_meta_graph('-82.meta')
summary = tf.summary.FileWriter('summary的路径', graph)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。