Open LeBron-Jian opened 3 years ago
在训练train.py 时,需要加上 loss.requiresgrad(True) 不然会报错 RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
请问作者做分类,有遇到这个问题吗?
兄弟,解决了吗?
在训练train.py 时,需要加上 loss.requiresgrad(True) 不然会报错 RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
请问作者做分类,有遇到这个问题吗?