TabPFN icon indicating copy to clipboard operation
TabPFN copied to clipboard

model does not support gradient calculation if no_grad = False?

Open hedongyan opened this issue 1 year ago • 1 comments

I use the TabPFNClassifier and set the no_grad=False. However, the model can not return a tensor with gradient. What should I do to get the gradient of the model output and use loss.backward to get the gradient of the input?

hedongyan avatar Nov 30 '23 15:11 hedongyan

Do your input tensors have require_grad set to True?

DhanshreeA avatar Dec 21 '23 08:12 DhanshreeA