原文:python調用對象屬性出錯:AttributeError: 'function' object has no attribute '_name_'

出錯如下圖所示: 原來是因為把 name 寫成 name , 下圖為正確結果: ...

2016-08-04 16:01 0 4152 推薦指數:

查看詳情

AttributeError: 'Model' object has no attribute 'name'

進入hsi_net.py文件找到FDSSC函數。 紅圈畫的input_data應該是模型的輸入,但是由於reshape時變量命名的問題,導致input_data變成了別的變量,所以 ...

Mon May 27 18:05:00 CST 2019 0 2172
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM