Skip to content

Commit

Permalink
recover op_registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Superjomn committed Oct 4, 2017
1 parent 13c1d6d commit 7d59aee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions paddle/framework/op_registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ std::unique_ptr<OperatorBase> OpRegistry::CreateOp(
const std::string& type, const VariableNameMap& inputs,
const VariableNameMap& outputs, AttributeMap attrs) {
auto& info = OpInfoMap::Instance().Get(type);
LOG(INFO) << "get type";
info.Checker().Check(attrs);
LOG(INFO) << "check attrs";
auto op = info.Creator()(type, inputs, outputs, attrs);
LOG(INFO) << "info creator";
return std::unique_ptr<OperatorBase>(op);
}

Expand Down

0 comments on commit 7d59aee

Please sign in to comment.