提交 e52bb816 编写于 作者: D dongdaxiang

add copyright to __init__.py in distributed folder

上级 f6c30863
...@@ -49,13 +49,13 @@ void BindAsyncExecutor(py::module* m) { ...@@ -49,13 +49,13 @@ void BindAsyncExecutor(py::module* m) {
new framework::AsyncExecutor(scope, place)); new framework::AsyncExecutor(scope, place));
})) }))
.def("run_from_files", &framework::AsyncExecutor::RunFromFile) .def("run_from_files", &framework::AsyncExecutor::RunFromFile)
.def("init_server", &framework::AsyncExecutor::InitServer) .def("init_server", &framework::AsyncExecutor::InitServer)
.def("init_worker", &framework::AsyncExecutor::InitWorker) .def("init_worker", &framework::AsyncExecutor::InitWorker)
.def("start_server", &framework::AsyncExecutor::StartServer) .def("start_server", &framework::AsyncExecutor::StartServer)
.def("stop_server", &framework::AsyncExecutor::StopServer) .def("stop_server", &framework::AsyncExecutor::StopServer)
.def("gather_servers", &framework::AsyncExecutor::GatherServers) .def("gather_servers", &framework::AsyncExecutor::GatherServers)
.def("init_model", &framework::AsyncExecutor::InitModel) .def("init_model", &framework::AsyncExecutor::InitModel)
.def("save_model", &framework::AsyncExecutor::SaveModel); .def("save_model", &framework::AsyncExecutor::SaveModel);
} // end BindAsyncExecutor } // end BindAsyncExecutor
#else #else
void BindAsyncExecutor(py::module* m) { void BindAsyncExecutor(py::module* m) {
...@@ -64,7 +64,7 @@ void BindAsyncExecutor(py::module* m) { ...@@ -64,7 +64,7 @@ void BindAsyncExecutor(py::module* m) {
return std::unique_ptr<framework::AsyncExecutor>( return std::unique_ptr<framework::AsyncExecutor>(
new framework::AsyncExecutor(scope, place)); new framework::AsyncExecutor(scope, place));
})) }))
.def("run_from_files", &framework::AsyncExecutor::RunFromFile) .def("run_from_files", &framework::AsyncExecutor::RunFromFile);
} // end BindAsyncExecutor } // end BindAsyncExecutor
#endif #endif
} // end namespace pybind } // end namespace pybind
......
# 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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册