![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Tensorflow
SYSU-Leo
liuw.tech
展开
-
Tensorflow lite debug过程
报错:None is only supported in the 1st dimension.加入input_shapes={“input_1”:[1,600,500,3]}import tensorflow as tfgraph_def_file = "./models/wdsr-a-32-x4-psnr-29.1736.pb"input_arrays = ["input_1"]ou...原创 2019-07-08 16:40:23 · 2000 阅读 · 1 评论 -
tf.depth_to_space详解
tf.depth_to_space ( input , block_size , name = None )将数据从深度重新排列为空间数据块.这是 SpaceToDepth 的逆向转换.更具体地说,此 op 输出输入张量的一个副本,其中来自深度维度的值在空间块中移动到高度和宽度维度.attr block_size 表示输入块的大小以及数据的移动方式.从深度大小...原创 2019-07-10 10:36:19 · 6622 阅读 · 0 评论 -
加载keras模型'tf' is not defined on load_model() - using lambda NameError: name 'tf' is not defined报错
解决方法如下:import tensorflow as tfimport kerasmodel = keras.models.load_model('my_model.h5', custom_objects={'tf': tf})原创 2019-07-03 10:11:17 · 4277 阅读 · 2 评论