pytorch: RuntimeError: 1only batches of spatial targets supported but got targets of size : : xx

@[TOC](RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of size: : [64])web 問題描述 今天在使用pytorch編寫修改網絡結構的時候,遇到了一個問題: 以下圖所示,是求網絡輸出和label之間交叉熵的時候遇到維度不匹配。 因此輸出
相關文章
相關標籤/搜索