- 博客(3)
- 收藏
- 关注
转载 python3中pathlib库的Path类方法汇总
1、调用库 1 frompathlibimportPath 2、创建path对象p = Path(file)3、方法总结 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2...
2020-06-19 11:58:38 1250
原创 TensorFlow 微调指定的op层
利用TensorFlow进行模型finetune时,想训练指定的op,则需要根据指定的op名进行提取,然后将其配置至tf.train.AdamOptimizer函数中的var_list参数。 部分代码如下:def _get_variables_to_train(trainable_scopes = None): """Returns a list of variables to train. Returns: A list of variables to train...
2020-06-12 14:12:41 362
原创 TensorFlow 提取指定名的op函数
部分代码:def _get_variables_to_train(trainable_scopes = None): """Returns a list of variables to train. Returns: A list of variables to train by the optimizer. """ if trainable_scopes is None: return tf.trainable_variables() else: sco
2020-06-05 20:37:53 510
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人