diff --git a/paddle/fluid/framework/operator.h b/paddle/fluid/framework/operator.h index b8d2c1eaf2ca633af7b819772a832213b11c7b54..8109739caeffe1e50e9c6a8261550fae4c16a7fc 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.