Use std::mutex instead of std::call_once in Function when we initialize GraphExecutor. (#26571)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26571
We will need a mutex for computing optimized graph too, which will be
implemented in subsequent commits.
Test Plan: Imported from OSS
Differential Revision: D17510883
Pulled By: ZolotukhinM
fbshipit-source-id: 273b25426785e50f67a103204de98f6ed14182db
Author
Mikhail Zolotukhin