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

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 即可。

 

 

posted on 2019-07-22 12:01  CuriousZero  阅读(3751)  评论(0编辑  收藏  举报

导航