Hello @mohit7
We just exposed control on global number of threads used by pytorch android, it was landed in master 6
method org.pytorch.Module#setNumThreads(int numThreads)

(https://github.com/pytorch/pytorch/blob/master/android/pytorch_android/src/main/java/org/pytorch/Module.java#L57 13)
The latest android nightlies already include them: https://github.com/pytorch/pytorch/tree/master/android#nightly 11 (you might need gradle argument --refresh-dependencies if you already using them)
Module module = Module.load(moduleFileAbsoluteFilePath);
module.setNumThreads(1);

This is new functionality, please report if you find any issues with it.