Custom loss function error: tensor does not have a grad_fn

前端 未结 0 1020
野的像风
野的像风 2020-11-27 04:11

Trying to utilize a custom loss function and getting error ‘RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn’. Error occurs during loss.b

相关标签:
回答
  • 消灭零回复
提交回复
热议问题