@albanD 's answer helped me a lot, when I moved my model and variables to cpu I got an exact line number that caused it:
        model.cpu()
        input_features.cpu()
        result = model(input_features)

Thanks!