diff options
Diffstat (limited to 'tensorflow/core/platform/file_system.cc')
-rw-r--r-- | tensorflow/core/platform/file_system.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/platform/file_system.cc b/tensorflow/core/platform/file_system.cc index 3d7553e6da..2abda45714 100644 --- a/tensorflow/core/platform/file_system.cc +++ b/tensorflow/core/platform/file_system.cc @@ -37,7 +37,7 @@ constexpr int kNumThreads = 8; // Run a function in parallel using a ThreadPool, but skip the ThreadPool // on the iOS platform due to its problems with more than a few threads. -void ForEach(int first, int last, std::function<void(int)> f) { +void ForEach(int first, int last, const std::function<void(int)>& f) { #if TARGET_OS_IPHONE for (int i = first; i < last; i++) { f(i); |