摘要:
#导入相关的库 import tensorflow as tf import os import numpy as np import matplotlib.pyplot as plt <!-- 打标签 设定猫为0,狗为1 打乱数据集,细节如下 --> #读取数据集中所有图片的路径和标签 def g 阅读全文
摘要:
#前者为Variable的案例 #后者为Session import tensorflow as tf tf.compat.v1.disable_eager_execution() state = tf.Variable(0, name='counter') # 定义常量 one one = tf. 阅读全文