1.問題:AttributeError: module 'torch' has no attribute 'flatten'
2. 解決:
參考:'tensorflow.python.layers.layers' has no attribute 'flatten'
torch沒有flatten這個函數,看來確定無疑是我的PyTorch0.4.0版本太老了。 需要更新PyTorch版本。
我估計需要重構裝一個新版本的PyTorch。。。。。。。
1.問題:AttributeError: module 'torch' has no attribute 'flatten'
2. 解決:
參考:'tensorflow.python.layers.layers' has no attribute 'flatten'
torch沒有flatten這個函數,看來確定無疑是我的PyTorch0.4.0版本太老了。 需要更新PyTorch版本。
我估計需要重構裝一個新版本的PyTorch。。。。。。。
神經網絡處理分類問題流程 網絡結構及部分參數計算 網絡超參數及其訓練 網絡特點 訓練模型 測試模型