提交 e043b386 编写于 作者: Q qiaolongfei

clean code

上级 628715d6
...@@ -54,7 +54,6 @@ class OpRegistry { ...@@ -54,7 +54,6 @@ class OpRegistry {
const std::string& grad_op_type) { const std::string& grad_op_type) {
OperatorRegistrar<OpType, ProtoMakerType> reg(op_type.c_str()); OperatorRegistrar<OpType, ProtoMakerType> reg(op_type.c_str());
reg.info.grad_op_type_ = grad_op_type; reg.info.grad_op_type_ = grad_op_type;
// register gradient op // register gradient op
if (!grad_op_type.empty()) { if (!grad_op_type.empty()) {
OperatorRegistrar<GradOpType> grad_reg(grad_op_type.c_str()); OperatorRegistrar<GradOpType> grad_reg(grad_op_type.c_str());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册