DeepVAC / MLab

“云上炼丹师”中的云
GNU General Public License v3.0
67 stars 16 forks source link

HomePod上训练“TEXT CLASSIFICATION WITH THE TORCHTEXT LIBRARY”例子报错 #53

Closed gemfield closed 3 years ago

gemfield commented 3 years ago
gemfield commented 3 years ago

因为train_iter = AG_NEWS(split='train') 忘了初始化,导致拿到的num_class为0,分类数不正确导致的。