aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/function_test.cc
diff options
context:
space:
mode:
authorGravatar Derek Murray <mrry@google.com>2017-04-21 12:07:16 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-21 13:24:43 -0700
commit7ee26f7e144849d07e985b0a1c8abf7bf36adb27 (patch)
tree020331e47b6256a4c7c55051b3771f523e2b126a /tensorflow/core/common_runtime/function_test.cc
parent8e5041918f2e709ded94e63fb1779d6bb363becb (diff)
Fix some ClangTidy warnings in third_party/tensorflow/core/common_runtime.
Change: 153861629
Diffstat (limited to 'tensorflow/core/common_runtime/function_test.cc')
-rw-r--r--tensorflow/core/common_runtime/function_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/core/common_runtime/function_test.cc b/tensorflow/core/common_runtime/function_test.cc
index 29ce157349..bbf35590eb 100644
--- a/tensorflow/core/common_runtime/function_test.cc
+++ b/tensorflow/core/common_runtime/function_test.cc
@@ -44,7 +44,7 @@ Status GetOpSig(const string& op, const OpDef** sig) {
void FunctionTestSchedClosure(std::function<void()> fn) {
static thread::ThreadPool* w =
new thread::ThreadPool(Env::Default(), "Test", 8);
- w->Schedule(fn);
+ w->Schedule(std::move(fn));
}
void HasError(const Status& s, const string& substr) {
@@ -654,7 +654,8 @@ namespace {
bool DoNothing(Graph* g) { return false; }
-string Optimize(std::function<bool(Graph* g)> pass, const FunctionDef& fdef) {
+string Optimize(const std::function<bool(Graph* g)>& pass,
+ const FunctionDef& fdef) {
InstantiationResult result;
InstantiateAttrValueMap empty;
TF_CHECK_OK(InstantiateFunction(fdef, empty, GetOpSig, &result));