Skip to content

Commit

Permalink
fix insert conflit
Browse files Browse the repository at this point in the history
  • Loading branch information
chenwhql committed Oct 19, 2021
1 parent e0710fd commit ff19bd0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions paddle/fluid/framework/tcmpt_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ class KernelSignatureMap {
}

void Insert(const std::string& op_type, const KernelSignature& signature) {
PADDLE_ENFORCE_NE(
Has(op_type), true,
platform::errors::AlreadyExists(
"Operator (%s)'s Kernel Signature has been registered.", op_type));
map_.insert({op_type, signature});
if (!Has(op_type)) {
map_.insert({op_type, signature});
}
}

const KernelSignature* GetNullable(const std::string& op_type) const {
Expand Down

1 comment on commit ff19bd0

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #34425 Commit ID: ff19bd0 contains failed CI.

🔹 Failed: PR-CI-APPROVAL

approve_failed
2021-10-19 10:25:11 正在保存至: “bk.txt”
2021-10-19 10:25:11 0K 100% 2.77M=0s
2021-10-19 10:25:11 2021-10-19 10:25:11 (2.77 MB/s) - 已保存 “bk.txt” [5/5])
2021-10-19 10:25:18 ****************
2021-10-19 10:25:18 0. You must have one RD (lanxianghit (Recommend), phlrain or luotao1) approval for changing the FLAGS, which manages the environment variables.
2021-10-19 10:25:18 1. You must have Dianhai approval for change 20+ files or add than 1000+ lines of content.
2021-10-19 10:25:18 2. You must have one RD (XiaoguangHu01,chenwhql,zhiqiu,Xreki,luotao1) approval for paddle/fluid/framework/operator.h, which manages the underlying code for fluid.
2021-10-19 10:25:18 3. You must have one RD (zhiqiu (Recommend) , phlrain) approval for the changes of paddle/fluid/pybind/op_function_generator.cc, which manages the logic of automatic generating op functions for dygraph.
2021-10-19 10:25:18 4. You must have one RD (XiaoguangHu01,chenwhql,zhiqiu,Xreki,luotao1) approval for the usage of const_cast.
2021-10-19 10:25:18 5. You must have one RD (Avin0323(Recommend) or zhouwei25 or wanghuancoder or luotao1) approval for modifying unity_build_rule.cmake which the rules of Unity Build.
2021-10-19 10:25:18 There are 6 approved errors.
2021-10-19 10:25:18 ****************
2021-10-19 10:25:18 + EXCODE=6
2021-10-19 10:25:18 + echo 'EXCODE: 6'
2021-10-19 10:25:18 EXCODE: 6
2021-10-19 10:25:18 + echo 'ipipe_log_param_EXCODE: 6'
2021-10-19 10:25:18 ipipe_log_param_EXCODE: 6
2021-10-19 10:25:18 + exit 6

Please sign in to comment.