pytorch 错误提示 RuntimeError: size mismatch, m1: [25 x 16], m2: [400 x 120] at c:\a\w\1\s\tmp_conda_

测试一段代码遇到错误提示:mismatch

RuntimeError: size mismatch, m1: [25 x 16], m2: [400 x 120] at c:\a\w\1\s\tmp_conda_3.7_070403\conda\conda-bld\pytorch-cpu_1550387224787\work\aten\src\th\generic/THTensorMath.cpp:940

 

仔细查看后发现是 缩进错误导致的

 

posted @ 2019-03-16 14:18  neo3301  阅读(63)  评论(0编辑  收藏  举报