码迷,mamicode.com
首页 > 其他好文 > 详细

Debug 路漫漫-10:AttributeError: 'Embedding' object has no attribute 'get_shape'

时间:2019-07-22 13:21:42      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:bsp   mic   out   stack   ror   object   flow   error:   alt   

CNN的Embedding层报错:

报错:AttributeError: ‘Embedding‘ object has no attribute ‘get_shape‘

技术图片

 

查了下是这个问题:

https://stackoverflow.com/questions/44285907/attributeerror-embedding-object-has-no-attribute-get-shape-with-tensorflow

技术图片

即,在Embedding函数后面添加:input、output 即可。

 技术图片

 

Debug 路漫漫-10:AttributeError: 'Embedding' object has no attribute 'get_shape'

标签:bsp   mic   out   stack   ror   object   flow   error:   alt   

原文地址:https://www.cnblogs.com/shenxiaolin/p/11225051.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!