@m4saka
Did you figure out this issue? I’ve been suffering the same. torch::jit::load brings the model without a problem as an individual project, but when it is combined with another project, it shows:
error loading the model
terminate called after throwing an instance of ‘c10::Error’
what():  ivalue INTERNAL ASSERT FAILED at “…/torch/csrc/jit/api/object.cpp”:19, please report a bug to PyTorch.
Exception raised from _ivalue at …/torch/csrc/jit/api/object.cpp:19 (most recent call first):