From 8d83e38a6b8c4f38e1ec228c54061fb94d6403a3 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Fri, 22 Feb 2019 21:24:20 +0800 Subject: [PATCH] remove mutex test=develop --- paddle/fluid/framework/operator.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/paddle/fluid/framework/operator.h b/paddle/fluid/framework/operator.h index b8d2c1eaf2..8109739cae 100644 --- a/paddle/fluid/framework/operator.h +++ b/paddle/fluid/framework/operator.h @@ -202,8 +202,6 @@ class AlgorithmsCache { private: std::unordered_map hash_; - std::mutex mutex_; - int search_times_; }; @@ -213,7 +211,6 @@ TAlgorithm framework::AlgorithmsCache::GetAlgorithm( const std::vector& strides, const std::vector& paddings, const std::vector& dilations, int algorithmFlags, std::function gen_func) { - std::lock_guard lock(mutex_); int64_t seed = 0; // Hash all of the inputs, use to try and look up a previously // discovered algorithm, or fall back to generating a new one. -- GitLab