标签:tensor eager 格式转换 总结 初始化 数据 知识 red ntop
tf.reduce_sum( ) 是求和函数
tf.train.GradientDescentOptimizer()使用随机梯度下降算法
tf.global_variables_initializer()初始化
tf.cast()执行 tensorflow 中张量数据类型转换,比如读入的图片如果是int8类型的,一般在要在训练前把图像的数据格式转换为float32。
tf.enable_eager_execution()
tf.negative 函数取负值
标签:tensor eager 格式转换 总结 初始化 数据 知识 red ntop
原文地址:https://www.cnblogs.com/magic-o/p/11565074.html