原文:ValueError:Expected more than 1 value per channel when training, got input size torch.Size([1, 512, 1, 1])

當batch里只有一個樣本時,再調用batch norm就會報下面這個錯誤: ValueError:Expected more than value per channel when training, got input size torch.Size , , , 在訓練前用 num of samples batch size 計算一下合適的大小 ...

2020-10-03 20:27 0 571 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM