tf.reduce_sum( ) 是求和函数
tf.train.GradientDescentOptimizer()使用随机梯度下降算法
tf.global_variables_initializer()初始化
tf.cast()执行 tensorflow 中张量数据类型转换,比如读入的图片如果是int8类型的,一般在要在训练前把图像的数据格式转换为float32。
tf.enable_eager_execution()
tf.negative 函数取负值
tf.reduce_sum( ) 是求和函数
tf.train.GradientDescentOptimizer()使用随机梯度下降算法
tf.global_variables_initializer()初始化
tf.cast()执行 tensorflow 中张量数据类型转换,比如读入的图片如果是int8类型的,一般在要在训练前把图像的数据格式转换为float32。
tf.enable_eager_execution()
tf.negative 函数取负值