From 292f2ab1a56451d932be1f5259e3d5ee2e0b36ec Mon Sep 17 00:00:00 2001 From: dongzhihong Date: Wed, 26 Jul 2017 21:06:37 +0800 Subject: [PATCH] "split to generic add PR" --- paddle/framework/backward.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/framework/backward.cc b/paddle/framework/backward.cc index c14249269bd..a4660d7156e 100644 --- a/paddle/framework/backward.cc +++ b/paddle/framework/backward.cc @@ -71,6 +71,7 @@ static void DeDuplicate(NetOp* net, std::unordered_se) auto* net = new NetOp(); if (forwardOp.IsNetOp()) { + //! TODO(dzh) std::unordered_map dup_output; std::unordered_map> dup_output_ops; const unsigned uniq_id_local = uniq_id; @@ -98,12 +99,12 @@ static void DeDuplicate(NetOp* net, std::unordered_se) if (op_ptr->inputs_[i] == dup.first) { // unique the duplicate name op_ptr->inputs_[i] += std::to_string(uniq_id++); + // TODO(dzh): need a generic add op here } } } } - //! TODO(dzh) } else { //! TODO(fjy) std::shared_ptr grad_op = OpRegistry::CreateGradOp(forwardOp); -- GitLab