这个错误通常是由于在张量运算中,两个张量的维度不匹配导致的。具体来说,在这个例子中,张量a的大小是2,而张量b的大小是0,这意味着它们的大小不匹配,无法进行加法操作。可能需要检查代码逻辑,确保张量的大小和维度正确匹配。

next_action = next_action + noiseclamp-selfmax_action selfmax_actionRuntimeError The size of tensor a 2 must match the size of tensor b 0 at non-singleton dimension 0使用中文回答

原文地址: http://www.cveoy.top/t/topic/hpJd 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录