![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
人工智能
有脾气的橙子
爬行速度如同蜗牛。
展开
-
改错 Failed to convert object of type class list to Tensor
https://blog.csdn.net/qq_14845119/article/details/81393127 将以上2dCBAM改成3dCBAM,扁平化之后的reshape时,报错Failed to convert object of type <class 'list'> to Tensor. Contents: [None, 1, 1, 1, 128]. Consider casting elements to a supported type.,成功解决如下: mlp_2_m原创 2020-05-11 09:33:31 · 4086 阅读 · 0 评论 -
串联数据错误:Layer concatenate_1 was called with an input that isn't a symbolic tensor
错误代码: train_shuffled= Keras.layers.concatenate((train_set, x_1),axis=-1) 由于要实现串联的数据是float32, 所以会出现张量错误(个人感觉好像是进入到神经网络里的数据才是张量?)。换成numpy.concatenate()即可。 改正代码: train_shuffled=np.concatenate(...原创 2020-03-09 23:55:20 · 2369 阅读 · 2 评论 -
最近遇到的Tensorflow函数(笔记)
tf.get_default_graph(集合名字,内容) 获取当前默认的计算图 tf.add_to_collection() 将资源加入一个或多个集合中,然后通过tf.get_collection()获取一个集合里面的所有资源 tf.InteractiveSession() 在交互环境下直接构建默认的会话函数,可省去将产生的会话注册为默认会话的过程 tf.random_norm...原创 2018-11-20 16:04:48 · 177 阅读 · 1 评论 -
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in position 0: invalid start byte
最近经常跑出来的问题,不知道什么原因,给你们看个很奇怪的例子,f.seek()那里把0换成其他数字就出错了...心塞!有人知道为什么麻烦告诉 我。。。或者等我解决了更新这篇博客。 ...原创 2018-07-28 17:45:31 · 3264 阅读 · 1 评论 -
pycharm运行出错,代码正确结果不显示
昨天手贱,觉得自己装的Python版本太低,重新安装了一个,安装完成后运行出现错误: Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x000032e0 (mo...原创 2018-07-19 08:59:13 · 9814 阅读 · 5 评论