From 84dcb1008e39984d52c13e44be7b5b699037709d Mon Sep 17 00:00:00 2001 From: zhaojiaying01 Date: Tue, 22 May 2018 15:38:16 +0800 Subject: [PATCH] op register --- src/framework/op_registry.h | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/framework/op_registry.h b/src/framework/op_registry.h index 4ba60ad4d4..90c4ca3ca1 100644 --- a/src/framework/op_registry.h +++ b/src/framework/op_registry.h @@ -94,19 +94,13 @@ class OpRegistry { const std::string& type, const VariableNameMap& inputs, const VariableNameMap& outputs, const AttributeMap attrs, std::shared_ptr scope) { - LOG(paddle_mobile::kLOG_DEBUG1) << " type: " - << type; - LOG(paddle_mobile::kLOG_DEBUG1) << " input size: " - << inputs.size(); - LOG(paddle_mobile::kLOG_DEBUG1) << " output size: " - << outputs.size(); - LOG(paddle_mobile::kLOG_DEBUG1) << " attr size: " - << attrs.size(); - LOG(paddle_mobile::kLOG_DEBUG1) << " OpInfoMap size: " - << OpInfoMap::Instance().map().size(); - LOG(paddle_mobile::kLOG_DEBUG1) << " has type: " - << type - << " " + LOG(paddle_mobile::kLOG_DEBUG1) << " type: " << type; + LOG(paddle_mobile::kLOG_DEBUG1) << " input size: " << inputs.size(); + LOG(paddle_mobile::kLOG_DEBUG1) << " output size: " << outputs.size(); + LOG(paddle_mobile::kLOG_DEBUG1) << " attr size: " << attrs.size(); + LOG(paddle_mobile::kLOG_DEBUG1) + << " OpInfoMap size: " << OpInfoMap::Instance().map().size(); + LOG(paddle_mobile::kLOG_DEBUG1) << " has type: " << type << " " << OpInfoMap::Instance().Has(type); auto& info = OpInfoMap::Instance().Get(type); auto op = info.Creator()(type, inputs, outputs, attrs, scope); -- GitLab