Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unused lambda capture #20443

Merged
merged 5 commits into from
Sep 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions tensorflow/core/common_runtime/parallel_concat_optimizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class ParallelConcatRemovePass : public GraphOptimizationPass {
}
for (Node* n : matches) {
AttrSlice n_attrs = n->attrs();
auto base_make_node = [n, g, &n_attrs](const string& op,
const string& name) {
auto base_make_node = [n, &n_attrs](const string& op,
const string& name) {
NodeBuilder node_builder(name, op);
node_builder.Device(n->requested_device());
string colo;
Expand All @@ -60,7 +60,7 @@ class ParallelConcatRemovePass : public GraphOptimizationPass {
}
return node_builder;
};
auto make_node = [n, g, &n_attrs, &base_make_node](string op) {
auto make_node = [n, g, &base_make_node](string op) {
return base_make_node(
op, g->NewName(strings::StrCat(n->name(), "/Internal")));
};
Expand Down