How to set num_thread for libpytorch mobile application?

How to set OMP_NUM_THREADS for libpytorch mobile application in order to control the CPU usage for the android libpytorch application.