![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
Hubinbin2018
私信总忘记看。联系邮箱cquhbb@163.com
展开
-
Tensorflow2.x 模型保存和加载(ValueError: No model found in config file.)
Tensorflow2.x 模型保存和加载 Tensorflow官网教程给出了两种保存整个模型的方法: SavedModel format HDF5 format 在自定义模型时遇到了一个问题: Traceback (most recent call last): File "/data/projects/sysml/resNetAll/main.py", line 100, in <module> 'learning_rate':learning_rate,'decay_rat原创 2020-06-09 09:59:38 · 7015 阅读 · 2 评论 -
Tensorflow2.1 keras 自定义网络层
Tensorflow 2.1 自定义网络层的方法及其注意事项 具体定义方法在tensorflow官网 tf2.1 API 中定义的很清楚,但其中有需要注意的事项,是官方API没有写清楚的 定义方法 官网给出的定义方式: class MyDenseLayer(tf.keras.layers.Layer): def __init__(self, num_outputs): super(MyDenseLayer, self).__init__() self.num_outputs = nu原创 2020-05-18 18:59:49 · 1330 阅读 · 4 评论