An undefined symbol problem about torch::from_blob in torch==2.1.2

when I use torch::from_blob() in my C code, it can finish compile successfully, but fail when I try to import the .so file I compile, then I get a problem show:


I really confuse about this.
Any help will be greatful, thanks.

I solve it by change my torch from 2.1.2 to 2.2.0。