Torchscript MKL error

undefined symbol: mkl_serv_getenv
when I try to use a custom scripted PyTorch model in C++.

The scripted model works fine when I load and run in python though.
Any thoughts on why this could be happening?