Commit 957a7adc authored by Changming Sun's avatar Changming Sun Committed by drpngx
Browse files

Bug fix for example_parsing_ops_test (#15548)

Static variables' initialization order is not determined in C++.
In a static variable's constructor, you can't access other static
variables unless its constructor is a constexpr, which is not true
for tensor's allocators.

Replacing it with std::call_once.
parent b1ffd57f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment