Pytorch without MKL with pip

I am currently installing PyTorch with pip using a wheel file from here. That package is compiled with MKLDNN. I want to know if there’s a flag or function call which changes the backend of BLAS at runtime without any recompilation. I don’t want to use MKL_NUM_THREADS=1 as this won’t change the backend.