成功解决AttributeError: 'BasicLSTMCell' object has no attribute '_kernel'+python下划线用法的几种常见用法理解
目录
AttributeError: 'BasicLSTMCell' object has no attribute '_kernel'
Python 用下划线作为变量前缀和后缀指定特殊变量/方法。
主要存在四种情形
1. object public
2. __object__ special, python system use, user should not define like it
3. __object private (name mangling during runtime)
4. _object obey coding convention, consider it as private
该函数的新旧版本更替出现的问题,call函数修改为以前版本即可!
哈哈,大功告成!
网站声明:如果转载,请联系本站管理员。否则一切后果自行承担。
添加我为好友,拉您入交流群!
请使用微信扫一扫!