diff --git a/src/framework/framework.pb.cpp b/src/framework/framework.pb.cpp index 636b0ad182eb5ee09057f1baba510e5d82e4a237..ae4016e8b137a0f5e27c032f08b7e50d24c2dc5b 100644 --- a/src/framework/framework.pb.cpp +++ b/src/framework/framework.pb.cpp @@ -1,3 +1,17 @@ +/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ + // Generated by the protocol buffer compiler. DO NOT EDIT! // source: framework.proto diff --git a/src/framework/framework.pb.h b/src/framework/framework.pb.h index 25f3dcb0b4835d40a7ceae0e0e66cc459d601ef5..fa75a92e57ddee571a611146e91fa93e8b943b60 100644 --- a/src/framework/framework.pb.h +++ b/src/framework/framework.pb.h @@ -1,3 +1,17 @@ +/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ + // Generated by the protocol buffer compiler. DO NOT EDIT! // source: framework.proto diff --git a/src/framework/op_desc.cpp b/src/framework/op_desc.cpp index d7b946424e6af07119d1579a150494c207b0989c..73037ecf3077d5ef746929487eea22efdd0b3194 100644 --- a/src/framework/op_desc.cpp +++ b/src/framework/op_desc.cpp @@ -1,8 +1,23 @@ +/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ + // // Created by liuRuiLong on 2018/5/4. // - -#include "op_desc.h" +#include "framework/op_desc.h" +#include +#include namespace paddle_mobile { namespace framework { @@ -30,10 +45,6 @@ OpDesc::OpDesc(const proto::OpDesc &desc) : desc_(desc) { std::string attr_name = attr.name(); if (attr.type() != proto::AttrType::BLOCK) { attrs_[attr_name] = Attribute::GetAttrValue(attr); - // if (attr.type() == proto::AttrType::INT){ - // std::cout << " attrName " << attr_name << " " << - // attrs_[attr_name].Get() << std::endl; - // } } } } diff --git a/src/framework/program_desc.cpp b/src/framework/program_desc.cpp index 4f6a4699bde5e19ee61e502ef15efd9296a08973..5537dacdebccd5533b79b7331ad6bb77699d9b93 100644 --- a/src/framework/program_desc.cpp +++ b/src/framework/program_desc.cpp @@ -1,8 +1,22 @@ +/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ + // // Created by liuRuiLong on 2018/5/4. // -#include "program_desc.h" +#include "framework/program_desc.h" namespace paddle_mobile { namespace framework { diff --git a/src/framework/scope.cc b/src/framework/scope.cc index b7f3926a8f6ddce4ce6ec24666881d58b6f25e25..ba5da674a45badff18966a91e070df324e9a8352 100644 --- a/src/framework/scope.cc +++ b/src/framework/scope.cc @@ -1,6 +1,21 @@ +/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ + +#include "framework/scope.h" -#include "scope.h" #include +#include #include namespace paddle_mobile { @@ -16,7 +31,7 @@ Variable *Scope::Var(const std::string &name) { auto *pvar = FindVarLocally(name); if (pvar != nullptr) { return pvar; - }; + } pvar = new Variable; vars_[name] = pvar; pvar->name_ = &(vars_.find(name)->first); diff --git a/tools/pre-commit.hooks/copyright.hook b/tools/pre-commit.hooks/copyright.hook index 7b7ff728f90a1e8c58e9f34f77bcf40b98ed36f8..8fc0028059c8e841ceb7a70368563f54a4584b06 100644 --- a/tools/pre-commit.hooks/copyright.hook +++ b/tools/pre-commit.hooks/copyright.hook @@ -10,10 +10,13 @@ import subprocess COPYRIGHT = ''' Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 + + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.