[oneDNN] Use original Threadpool scheduling approach if use_caller_thread is enabled
Hi @milpuz01 @nSircombe @cfRod  Any update on this PR? Please. Thank you! > Hi @milpuz01 @nSircombe @cfRod Any update on this PR? Please. Thank you!

Hi @penpornk I have tested with this patch and there's no performance impact on our end. Thanks!
This PR fixes a performance regression observed when user enables TF_ONEDNN_THREADPOOL_USE_CALLER_THREAD that allows one task to run on the main thread. This feature is off by default. Recent PR https://github.com/tensorflow/tensorflow/pull/60346 has made changes to threads scheduling which caused user_caller_thread feature (if enabled) to run slower than before (about 12% in Resnet50). This PR reverts to original scheduling in case user_caller_thread option is enabled.