提交 17f09780 编写于 作者: W wangliu

modify code style

上级 5220e87e
...@@ -118,7 +118,7 @@ class FusionOpMatcher : PaddleMobileObject { ...@@ -118,7 +118,7 @@ class FusionOpMatcher : PaddleMobileObject {
virtual std::string Type() = 0; virtual std::string Type() = 0;
virtual void FolderNodes(const Node &node) { virtual void FolderNodes(Node &node) {
node.Folder(node_.Depth(), Type(), {}); node.Folder(node_.Depth(), Type(), {});
} }
......
...@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ...@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "/io.h" #include "io/io.h"
#include <fstream> #include <fstream>
#include <vector> #include <vector>
#include "common/enforce.h" #include "common/enforce.h"
......
...@@ -32,7 +32,7 @@ class FusionFcMatcher : public framework::FusionOpMatcher { ...@@ -32,7 +32,7 @@ class FusionFcMatcher : public framework::FusionOpMatcher {
node_ > std::make_shared<framework::Node>("elementwise_add"); node_ > std::make_shared<framework::Node>("elementwise_add");
} }
void FolderNodes(const framework::Node &node) { void FolderNodes(framework::Node &node) {
vector<std::shared_ptr<framework::OpDesc>> origin_descs = vector<std::shared_ptr<framework::OpDesc>> origin_descs =
node.OpDescs(node_.Depth()); node.OpDescs(node_.Depth());
node.Folder(node_.Depth(), Type(), {{"elementwise_add", {"Y", "Z"}}}); node.Folder(node_.Depth(), Type(), {{"elementwise_add", {"Y", "Z"}}});
......
...@@ -22,6 +22,7 @@ limitations under the License. */ ...@@ -22,6 +22,7 @@ limitations under the License. */
namespace paddle_mobile { namespace paddle_mobile {
namespace operators { namespace operators {
using framework::AttributeMap; using framework::AttributeMap;
using framework::OperatorWithKernel;
using framework::Scope; using framework::Scope;
using std::string; using std::string;
template <typename DeviceType, typename T> template <typename DeviceType, typename T>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册