diff --git a/paddle/framework/backward.cc b/paddle/framework/backward.cc index c14249269bd5ed4f4f30cc602c2b22cc702a14a9..a4660d7156e506aba3021749214c263771bf676b 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);