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

 

猜你喜欢

转载自www.cnblogs.com/shenxiaolin/p/11225051.html