Hi, I’ve been trying to convert a Python model to Torch Script for a while now, and have been debugging this error: “RuntimeError: Unsupported value kind: Tensor”. This forum post (Runtime error - Unsupported value kind: Tensor - #3 by nivtorch) covers the same issue, but the answer is pretty vague, saying that somewhere for them they needed to add another argument.
I followed one user’s suggestion there to print from the jit’s source file, using “print(‘—\n’, concrete_type, method_stubs, property_stubs)”, and the issue seems to maybe occur during the model’s forward() method. Whenever I try the common suggestions to use the “Optional” type keyword for my parameters of the method, a bunch of new errors pop up about type mismatches.
Another forum post suggested that there can be a version mismatch between Pytorch and libtorch, but my versions match up between the two.
Has anyone had experience working past this error? Thanks