原文: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-2025 CODEPRJ.COM