
tensorflow
Jolen_xie
生活性博士研究生
展开
-
tensorflow的slim模块学习使用
https://www.cnblogs.com/zyly/p/9146787.html转载 2021-05-27 13:37:05 · 174 阅读 · 0 评论 -
Tensorflow和anaconda的历史版本镜像,清华源镜像下载地址
清华源镜像下载地址https://pypi.tuna.tsinghua.edu.cn/simple/tensorflow-gpu/原创 2021-05-18 20:26:52 · 568 阅读 · 0 评论 -
使用tensorflow的slim中的batch_norm不好使,使用tf.layers.batch_normalization保存模型必写部分
with tf.Graph().as_default(): ....model().... update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS) with tf.control_dependencies(update_ops): optimizer = tf.train.AdamOptimizer(learning_rate).minimize(loss, global_step=global_step) var_list = tf原创 2021-01-08 22:00:49 · 401 阅读 · 0 评论 -
Tensorflow计算网络参数量和计算量FLOPs
先引入头文件import tensorflow as tf1.计算参数量def count_param(): # 计算网络参数量 total_parameters = 0 for v in tf.trainable_variables(): shape = v.get_shape() variable_parameters = 1 for dim in shape: variable_paramete原创 2020-10-30 11:29:56 · 5740 阅读 · 14 评论