提交 953eaadb 编写于 作者: Q qijun

fix bug in OpKernelKey equal method

上级 6a5793ba
...@@ -199,7 +199,9 @@ class OperatorWithKernel : public OperatorBase { ...@@ -199,7 +199,9 @@ class OperatorWithKernel : public OperatorBase {
place_ = dev_ctx.GetPlace(); place_ = dev_ctx.GetPlace();
} }
bool operator==(const OpKernelKey& o) const { return place_ == o.place_; } bool operator==(const OpKernelKey& o) const {
return platform::places_are_same_class(place_, o.place_);
}
}; };
struct OpKernelHash { struct OpKernelHash {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册