diff options
author | Smit Hinsu <hinsu@google.com> | 2018-05-09 12:07:05 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-09 13:13:59 -0700 |
commit | 69bc455e699ba5d3b3227aff1932b556c93974d8 (patch) | |
tree | 5744b90de0c2bf1a6719063487e830d10e1b755d /tensorflow/stream_executor/kernel_spec.cc | |
parent | d3c2b54c6f10c3bdf0b7001d54556e9e7a8438c6 (diff) |
Use parenthesis based construction instead of brace initialization
Updates all the construction calls for Status, ScopedActivateContext and
mutexes withing stream_executor to follow the recommendation in
https://abseil.io/tips/88
PiperOrigin-RevId: 196007931
Diffstat (limited to 'tensorflow/stream_executor/kernel_spec.cc')
-rw-r--r-- | tensorflow/stream_executor/kernel_spec.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/stream_executor/kernel_spec.cc b/tensorflow/stream_executor/kernel_spec.cc index f0a5785b72..902892af3f 100644 --- a/tensorflow/stream_executor/kernel_spec.cc +++ b/tensorflow/stream_executor/kernel_spec.cc @@ -93,7 +93,7 @@ const char *CudaPtxInMemory::default_text() const { return nullptr; } - mutex_lock lock{mu_}; + mutex_lock lock(mu_); auto ptx = ptx_by_compute_capability_.begin()->second; // Check if there is an entry in decompressed ptx table. @@ -127,7 +127,7 @@ const char *CudaPtxInMemory::text(int compute_capability_major, return nullptr; } - mutex_lock lock{mu_}; + mutex_lock lock(mu_); // Check if there is an entry in decompressed ptx table. auto decompressed_ptx_iter = decompressed_ptx_.find(ptx_iter->second); |