未验证 提交 71b1c397 编写于 作者: X Xin Pan 提交者: GitHub

Merge pull request #11874 from panyx0718/move_trainer

Move trainer and utils api
...@@ -18,6 +18,8 @@ learning to many products at Baidu. ...@@ -18,6 +18,8 @@ learning to many products at Baidu.
Our vision is to enable deep learning for everyone via PaddlePaddle. Our vision is to enable deep learning for everyone via PaddlePaddle.
Please refer to our [release announcement](https://github.com/PaddlePaddle/Paddle/releases) to track the latest feature of PaddlePaddle. Please refer to our [release announcement](https://github.com/PaddlePaddle/Paddle/releases) to track the latest feature of PaddlePaddle.
### Lastest PaddlePaddle Version: [Fluid](https://github.com/PaddlePaddle/Paddle/tree/develop/paddle/fluid)
## Features ## Features
- **Flexibility** - **Flexibility**
......
...@@ -52,7 +52,7 @@ In `trainer_internal.cpp:L93 trainOneBatch`: ...@@ -52,7 +52,7 @@ In `trainer_internal.cpp:L93 trainOneBatch`:
When doing actual network forward and backward, at the beginning of each batch, the trainer will try to download one row of data from pserver. When doing actual network forward and backward, at the beginning of each batch, the trainer will try to download one row of data from pserver.
In `trainer/RemoteParameterUpdater.cpp`: `parameterUpdater_->getParametersRemote();`: In `legacy/trainer/RemoteParameterUpdater.cpp`: `parameterUpdater_->getParametersRemote();`:
```c++ ```c++
if (fullSize) { if (fullSize) {
......
...@@ -339,7 +339,7 @@ If you are creating a new file for the test, such as :code:`paddle/legacy/gserve ...@@ -339,7 +339,7 @@ If you are creating a new file for the test, such as :code:`paddle/legacy/gserve
Implement Python Wrapper Implement Python Wrapper
======================== ========================
Implementing Python wrapper allows us to use the added layer in configuration files. All the Python wrappers are in file :code:`python/paddle/trainer/config_parser.py`. An example of the Python wrapper for fully connected layer is listed below. It has the following steps: Implementing Python wrapper allows us to use the added layer in configuration files. All the Python wrappers are in file :code:`python/paddle/legacy/trainer/config_parser.py`. An example of the Python wrapper for fully connected layer is listed below. It has the following steps:
- Use :code:`@config_layer('fc')` at the decorator for all the Python wrapper class. :code:`fc` is the identifier of the layer. - Use :code:`@config_layer('fc')` at the decorator for all the Python wrapper class. :code:`fc` is the identifier of the layer.
- Implements :code:`__init__` constructor function. - Implements :code:`__init__` constructor function.
......
if(NOT WITH_FLUID_ONLY) if(NOT WITH_FLUID_ONLY)
add_subdirectory(legacy/cuda) add_subdirectory(legacy/cuda)
add_subdirectory(legacy/function) add_subdirectory(legacy/function)
add_subdirectory(utils) add_subdirectory(legacy/utils)
add_subdirectory(legacy/math) add_subdirectory(legacy/math)
add_subdirectory(legacy/gserver) add_subdirectory(legacy/gserver)
add_subdirectory(legacy/parameter) add_subdirectory(legacy/parameter)
...@@ -10,7 +10,7 @@ if(NOT WITH_FLUID_ONLY) ...@@ -10,7 +10,7 @@ if(NOT WITH_FLUID_ONLY)
add_subdirectory(legacy/capi) add_subdirectory(legacy/capi)
else() else()
add_subdirectory(legacy/pserver) add_subdirectory(legacy/pserver)
add_subdirectory(trainer) add_subdirectory(legacy/trainer)
add_subdirectory(scripts) add_subdirectory(scripts)
if(WITH_C_API) if(WITH_C_API)
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#include <vector> #include <vector>
#include "paddle/fluid/framework/eigen.h" #include "paddle/fluid/framework/eigen.h"
#include "paddle/fluid/framework/op_registry.h" #include "paddle/fluid/framework/op_registry.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
namespace paddle { namespace paddle {
namespace operators { namespace operators {
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#include "paddle/fluid/framework/lod_tensor.h" #include "paddle/fluid/framework/lod_tensor.h"
#include "paddle/fluid/framework/tensor_util.h" #include "paddle/fluid/framework/tensor_util.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#define ARITHMETIC_KERNEL(op_type, sign) \ #define ARITHMETIC_KERNEL(op_type, sign) \
__global__ void op_type(const half* in1, const half* in2, half* out) { \ __global__ void op_type(const half* in1, const half* in2, half* out) { \
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#include "PaddleAPI.h" #include "PaddleAPI.h"
#include "PaddleAPIPrivate.h" #include "PaddleAPIPrivate.h"
#include "paddle/trainer/Trainer.h" #include "paddle/legacy/trainer/Trainer.h"
struct ParameterConfigPrivate { struct ParameterConfigPrivate {
paddle::ParameterPtr parameter; paddle::ParameterPtr parameter;
......
...@@ -198,5 +198,5 @@ namespace std { ...@@ -198,5 +198,5 @@ namespace std {
%ignore ParameterConfigPrivate; %ignore ParameterConfigPrivate;
%ignore OptimizationConfigPrivate; %ignore OptimizationConfigPrivate;
%ignore ParameterTraverseCallbackPrivate; %ignore ParameterTraverseCallbackPrivate;
%include "utils/GlobalConstants.h" %include "legacy/utils/GlobalConstants.h"
%include "legacy/api/PaddleAPI.h" %include "legacy/api/PaddleAPI.h"
...@@ -20,8 +20,8 @@ limitations under the License. */ ...@@ -20,8 +20,8 @@ limitations under the License. */
#include <string> #include <string>
#include <vector> #include <vector>
#include "paddle/legacy/gserver/gradientmachines/GradientMachine.h" #include "paddle/legacy/gserver/gradientmachines/GradientMachine.h"
#include "paddle/utils/Common.h" #include "paddle/legacy/utils/Common.h"
#include "paddle/utils/GlobalConstants.h" #include "paddle/legacy/utils/GlobalConstants.h"
/// Import PaddlePaddle's enumeration into global namespace. /// Import PaddlePaddle's enumeration into global namespace.
using namespace paddle::enumeration_wrapper; // NOLINT using namespace paddle::enumeration_wrapper; // NOLINT
......
...@@ -17,7 +17,7 @@ limitations under the License. */ ...@@ -17,7 +17,7 @@ limitations under the License. */
#include "paddle/legacy/gserver/evaluators/Evaluator.h" #include "paddle/legacy/gserver/evaluators/Evaluator.h"
#include "paddle/legacy/gserver/gradientmachines/GradientMachine.h" #include "paddle/legacy/gserver/gradientmachines/GradientMachine.h"
#include "paddle/legacy/parameter/ParameterUpdaterBase.h" #include "paddle/legacy/parameter/ParameterUpdaterBase.h"
#include "paddle/trainer/TrainerConfigHelper.h" #include "paddle/legacy/trainer/TrainerConfigHelper.h"
struct GradientMachinePrivate { struct GradientMachinePrivate {
std::shared_ptr<paddle::GradientMachine> machine; std::shared_ptr<paddle::GradientMachine> machine;
......
...@@ -16,10 +16,10 @@ limitations under the License. */ ...@@ -16,10 +16,10 @@ limitations under the License. */
#include "PaddleAPIPrivate.h" #include "PaddleAPIPrivate.h"
#ifndef PADDLE_WITHOUT_GOLANG #ifndef PADDLE_WITHOUT_GOLANG
#include "paddle/trainer/NewRemoteParameterUpdater.h" #include "paddle/legacy/trainer/NewRemoteParameterUpdater.h"
#endif #endif
#include "paddle/trainer/RemoteParameterUpdater.h" #include "paddle/legacy/trainer/RemoteParameterUpdater.h"
#include "paddle/trainer/ThreadParameterUpdater.h" #include "paddle/legacy/trainer/ThreadParameterUpdater.h"
ParameterUpdater::ParameterUpdater() : m(new ParameterUpdaterPrivate()) {} ParameterUpdater::ParameterUpdater() : m(new ParameterUpdaterPrivate()) {}
......
...@@ -19,7 +19,7 @@ limitations under the License. */ ...@@ -19,7 +19,7 @@ limitations under the License. */
#include "PaddleAPI.h" #include "PaddleAPI.h"
#include "paddle/legacy/gserver/gradientmachines/GradientMachine.h" #include "paddle/legacy/gserver/gradientmachines/GradientMachine.h"
#include "paddle/legacy/parameter/Argument.h" #include "paddle/legacy/parameter/Argument.h"
#include "paddle/utils/Flags.h" #include "paddle/legacy/utils/Flags.h"
// used to represent partial sequence // used to represent partial sequence
struct Path { struct Path {
......
...@@ -20,10 +20,10 @@ limitations under the License. */ ...@@ -20,10 +20,10 @@ limitations under the License. */
#include <memory> #include <memory>
#include "paddle/legacy/gserver/gradientmachines/NeuralNetwork.h" #include "paddle/legacy/gserver/gradientmachines/NeuralNetwork.h"
#include "paddle/trainer/ParamUtil.h" #include "paddle/legacy/trainer/ParamUtil.h"
#include "paddle/trainer/Trainer.h" #include "paddle/legacy/trainer/Trainer.h"
#include "paddle/trainer/TrainerInternal.h" #include "paddle/legacy/trainer/TrainerInternal.h"
#include "paddle/utils/Flags.h" #include "paddle/legacy/utils/Flags.h"
using paddle::real; using paddle::real;
......
...@@ -15,10 +15,10 @@ limitations under the License. */ ...@@ -15,10 +15,10 @@ limitations under the License. */
#include "PaddleAPI.h" #include "PaddleAPI.h"
#include "paddle/legacy/parameter/Parameter.h" #include "paddle/legacy/parameter/Parameter.h"
#include "paddle/utils/Common.h" #include "paddle/legacy/utils/Common.h"
#include "paddle/utils/Flags.h" #include "paddle/legacy/utils/Flags.h"
#include "paddle/utils/PythonUtil.h" #include "paddle/legacy/utils/PythonUtil.h"
#include "paddle/utils/Util.h" #include "paddle/legacy/utils/Util.h"
#include <algorithm> #include <algorithm>
#include <iostream> #include <iostream>
......
...@@ -18,9 +18,9 @@ limitations under the License. */ ...@@ -18,9 +18,9 @@ limitations under the License. */
#include <vector> #include <vector>
#include "capi_private.h" #include "capi_private.h"
#include "main.h" #include "main.h"
#include "paddle/trainer/TrainerConfigHelper.h" #include "paddle/legacy/trainer/TrainerConfigHelper.h"
#include "paddle/utils/Excepts.h" #include "paddle/legacy/utils/Excepts.h"
#include "paddle/utils/PythonUtil.h" #include "paddle/legacy/utils/PythonUtil.h"
static void initPaddle(int argc, char** argv) { static void initPaddle(int argc, char** argv) {
paddle::initMain(argc, argv); paddle::initMain(argc, argv);
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#include <functional> #include <functional>
#include "capi.h" #include "capi.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
static std::vector<paddle_real> randomBuffer(size_t bufSize) { static std::vector<paddle_real> randomBuffer(size_t bufSize) {
auto& eng = paddle::ThreadLocalRandomEngine::get(); auto& eng = paddle::ThreadLocalRandomEngine::get();
......
...@@ -14,12 +14,12 @@ limitations under the License. */ ...@@ -14,12 +14,12 @@ limitations under the License. */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <paddle/legacy/gserver/gradientmachines/GradientMachine.h> #include <paddle/legacy/gserver/gradientmachines/GradientMachine.h>
#include <paddle/trainer/TrainerConfigHelper.h> #include <paddle/legacy/trainer/TrainerConfigHelper.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <type_traits> #include <type_traits>
#include "capi.h" #include "capi.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
static std::vector<paddle_real> randomBuffer(size_t bufSize) { static std::vector<paddle_real> randomBuffer(size_t bufSize) {
auto& eng = paddle::ThreadLocalRandomEngine::get(); auto& eng = paddle::ThreadLocalRandomEngine::get();
......
...@@ -208,7 +208,7 @@ typedef struct { ...@@ -208,7 +208,7 @@ typedef struct {
#include <cuda_runtime.h> #include <cuda_runtime.h>
#include "paddle/legacy/cuda/include/hl_cuda.h" #include "paddle/legacy/cuda/include/hl_cuda.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
extern __thread bool g_sync_flag; extern __thread bool g_sync_flag;
extern __thread cudaStream_t default_stream; extern __thread cudaStream_t default_stream;
......
...@@ -18,7 +18,7 @@ limitations under the License. */ ...@@ -18,7 +18,7 @@ limitations under the License. */
#ifdef __NVCC__ #ifdef __NVCC__
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
/* /*
* threads(framePerBlock, batchPerBlock) * threads(framePerBlock, batchPerBlock)
......
...@@ -18,7 +18,7 @@ limitations under the License. */ ...@@ -18,7 +18,7 @@ limitations under the License. */
#ifdef __NVCC__ #ifdef __NVCC__
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "hl_device_functions.cuh" #include "hl_device_functions.cuh"
/* /*
......
...@@ -18,7 +18,7 @@ limitations under the License. */ ...@@ -18,7 +18,7 @@ limitations under the License. */
#define HL_GPU_MATRIX_KERNEL_CUH_ #define HL_GPU_MATRIX_KERNEL_CUH_
#include <algorithm> #include <algorithm>
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "hl_base.h" #include "hl_base.h"
#ifdef __NVCC__ #ifdef __NVCC__
......
...@@ -18,7 +18,7 @@ limitations under the License. */ ...@@ -18,7 +18,7 @@ limitations under the License. */
#include "hl_cuda.ph" #include "hl_cuda.ph"
#include "hl_matrix_base.cuh" #include "hl_matrix_base.cuh"
#include "hl_thread.ph" #include "hl_thread.ph"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
/** /**
* @brief matrix row operator. * @brief matrix row operator.
......
...@@ -16,8 +16,8 @@ limitations under the License. */ ...@@ -16,8 +16,8 @@ limitations under the License. */
#include <sys/time.h> #include <sys/time.h>
#include "hl_cuda.h" #include "hl_cuda.h"
#include "hl_thread.ph" #include "hl_thread.ph"
#include "paddle/utils/DynamicLoader.h" #include "paddle/legacy/utils/DynamicLoader.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
namespace dynload { namespace dynload {
......
...@@ -17,8 +17,8 @@ limitations under the License. */ ...@@ -17,8 +17,8 @@ limitations under the License. */
#include <gflags/gflags.h> #include <gflags/gflags.h>
#include "hl_cuda_cudnn.ph" #include "hl_cuda_cudnn.ph"
#include "hl_thread.ph" #include "hl_thread.ph"
#include "paddle/utils/DynamicLoader.h" #include "paddle/legacy/utils/DynamicLoader.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
DEFINE_int32(cudnn_conv_workspace_limit_in_mb, DEFINE_int32(cudnn_conv_workspace_limit_in_mb,
4096, 4096,
......
...@@ -23,8 +23,8 @@ limitations under the License. */ ...@@ -23,8 +23,8 @@ limitations under the License. */
#include <unistd.h> #include <unistd.h>
#include "hl_cuda.ph" #include "hl_cuda.ph"
#include "hl_thread.ph" #include "hl_thread.ph"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/DynamicLoader.h" #include "paddle/legacy/utils/DynamicLoader.h"
// clang-format on // clang-format on
namespace dynload { namespace dynload {
......
...@@ -16,7 +16,7 @@ limitations under the License. */ ...@@ -16,7 +16,7 @@ limitations under the License. */
#include "hl_base.h" #include "hl_base.h"
#include "hl_cuda_cublas.h" #include "hl_cuda_cublas.h"
#include "hl_device_functions.cuh" #include "hl_device_functions.cuh"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
typedef hppl::Active<real>::forward t_forward; typedef hppl::Active<real>::forward t_forward;
typedef hppl::Active<real>::backward t_backward; typedef hppl::Active<real>::backward t_backward;
......
...@@ -20,7 +20,7 @@ limitations under the License. */ ...@@ -20,7 +20,7 @@ limitations under the License. */
#include "hl_matrix_ops.cuh" #include "hl_matrix_ops.cuh"
#include "hl_sequence.h" #include "hl_sequence.h"
#include "hl_sparse.ph" #include "hl_sparse.ph"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
DEFINE_MATRIX_UNARY_OP(Zero, a = 0); DEFINE_MATRIX_UNARY_OP(Zero, a = 0);
DEFINE_MATRIX_TERNARY_PARAMETER_OP(_add, TWO_PARAMETER, c = p1 * a + p2 * b); DEFINE_MATRIX_TERNARY_PARAMETER_OP(_add, TWO_PARAMETER, c = p1 * a + p2 * b);
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#include "hl_base.h" #include "hl_base.h"
#include "hl_device_functions.cuh" #include "hl_device_functions.cuh"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
__global__ void KeMaxSequenceForward(real* input, __global__ void KeMaxSequenceForward(real* input,
const int* sequence, const int* sequence,
......
...@@ -18,7 +18,7 @@ limitations under the License. */ ...@@ -18,7 +18,7 @@ limitations under the License. */
#include "hl_matrix_ops.cuh" #include "hl_matrix_ops.cuh"
#include "hl_sparse.h" #include "hl_sparse.h"
#include "hl_sparse.ph" #include "hl_sparse.ph"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
DEFINE_MATRIX_UNARY_PARAMETER_OP(mul_scalar, ONE_PARAMETER, a = a * p); DEFINE_MATRIX_UNARY_PARAMETER_OP(mul_scalar, ONE_PARAMETER, a = a * p);
DEFINE_MATRIX_UNARY_OP(Zero, a = 0); DEFINE_MATRIX_UNARY_OP(Zero, a = 0);
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#include "hl_base.h" #include "hl_base.h"
#include "hl_cuda.h" #include "hl_cuda.h"
#include "hl_device_functions.cuh" #include "hl_device_functions.cuh"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
template <int blockDimX, int blockDimY, int gridDimX, bool AddRow> template <int blockDimX, int blockDimY, int gridDimX, bool AddRow>
__global__ void KeMatrixAddRows(real* output, __global__ void KeMatrixAddRows(real* output,
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#include "paddle/legacy/cuda/include/hl_base.h" #include "paddle/legacy/cuda/include/hl_base.h"
#include "paddle/legacy/cuda/include/hl_sparse.ph" #include "paddle/legacy/cuda/include/hl_sparse.ph"
#include "paddle/legacy/cuda/include/hl_top_k.h" #include "paddle/legacy/cuda/include/hl_top_k.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
// using namespace hppl; // using namespace hppl;
......
...@@ -14,8 +14,8 @@ limitations under the License. */ ...@@ -14,8 +14,8 @@ limitations under the License. */
#include "hl_warpctc_wrap.h" #include "hl_warpctc_wrap.h"
#include <mutex> #include <mutex>
#include "paddle/utils/DynamicLoader.h" #include "paddle/legacy/utils/DynamicLoader.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
namespace dynload { namespace dynload {
......
...@@ -18,9 +18,9 @@ limitations under the License. */ ...@@ -18,9 +18,9 @@ limitations under the License. */
#include <vector> #include <vector>
#include "BufferArg.h" #include "BufferArg.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/Any.h" #include "paddle/legacy/utils/Any.h"
#include "paddle/utils/ClassRegistrar.h" #include "paddle/legacy/utils/ClassRegistrar.h"
#include "paddle/utils/Error.h" #include "paddle/legacy/utils/Error.h"
namespace paddle { namespace paddle {
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#include "MulOp.h" #include "MulOp.h"
#include "GemmFunctor.h" #include "GemmFunctor.h"
#include "paddle/legacy/math/SIMDFunctions.h" #include "paddle/legacy/math/SIMDFunctions.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
namespace { namespace {
inline void vecAddTo(real* a, const real* b, real scaleB, size_t len) { inline void vecAddTo(real* a, const real* b, real scaleB, size_t len) {
......
...@@ -21,8 +21,8 @@ limitations under the License. */ ...@@ -21,8 +21,8 @@ limitations under the License. */
#include <thread> #include <thread>
#include <type_traits> #include <type_traits>
#include "paddle/legacy/parameter/Argument.h" #include "paddle/legacy/parameter/Argument.h"
#include "paddle/utils/ClassRegistrar.h" #include "paddle/legacy/utils/ClassRegistrar.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#ifdef PADDLE_WITH_MKLDNN #ifdef PADDLE_WITH_MKLDNN
#include "MKLDNNActivation.h" #include "MKLDNNActivation.h"
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#pragma once #pragma once
#include <string> #include <string>
#include <vector> #include <vector>
#include "paddle/utils/Error.h" #include "paddle/legacy/utils/Error.h"
namespace paddle { namespace paddle {
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#include "MKLDNNActivation.h" #include "MKLDNNActivation.h"
#include "mkldnn.hpp" #include "mkldnn.hpp"
#include "paddle/utils/ClassRegistrar.h" #include "paddle/legacy/utils/ClassRegistrar.h"
namespace paddle { namespace paddle {
......
...@@ -16,10 +16,10 @@ limitations under the License. */ ...@@ -16,10 +16,10 @@ limitations under the License. */
#include <unistd.h> #include <unistd.h>
#include <algorithm> #include <algorithm>
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#include "paddle/utils/StringUtil.h" #include "paddle/legacy/utils/StringUtil.h"
#include "paddle/utils/Util.h" #include "paddle/legacy/utils/Util.h"
namespace paddle { namespace paddle {
......
...@@ -29,13 +29,13 @@ limitations under the License. */ ...@@ -29,13 +29,13 @@ limitations under the License. */
#include "paddle/legacy/math/SparseMatrix.h" #include "paddle/legacy/math/SparseMatrix.h"
#include "paddle/legacy/math/Vector.h" #include "paddle/legacy/math/Vector.h"
#include "paddle/legacy/parameter/Argument.h" #include "paddle/legacy/parameter/Argument.h"
#include "paddle/utils/ClassRegistrar.h" #include "paddle/legacy/utils/ClassRegistrar.h"
#include "paddle/utils/Common.h" #include "paddle/legacy/utils/Common.h"
#include "paddle/utils/Locks.h" #include "paddle/legacy/utils/Locks.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Queue.h" #include "paddle/legacy/utils/Queue.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
#include "paddle/utils/Util.h" #include "paddle/legacy/utils/Util.h"
namespace paddle { namespace paddle {
/** /**
......
...@@ -14,8 +14,8 @@ limitations under the License. */ ...@@ -14,8 +14,8 @@ limitations under the License. */
#include "MultiDataProvider.h" #include "MultiDataProvider.h"
#include <algorithm> #include <algorithm>
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Util.h" #include "paddle/legacy/utils/Util.h"
namespace paddle { namespace paddle {
......
...@@ -13,9 +13,9 @@ See the License for the specific language governing permissions and ...@@ -13,9 +13,9 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "PyDataProvider.h" #include "PyDataProvider.h"
#include "paddle/utils/Common.h" #include "paddle/legacy/utils/Common.h"
#include "paddle/utils/PythonUtil.h" #include "paddle/legacy/utils/PythonUtil.h"
#include "paddle/utils/Util.h" #include "paddle/legacy/utils/Util.h"
namespace paddle { namespace paddle {
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#pragma once #pragma once
#include <paddle/utils/PythonUtil.h> #include <paddle/legacy/utils/PythonUtil.h>
#include "DataFormat.pb.h" #include "DataFormat.pb.h"
#include "DataProvider.h" #include "DataProvider.h"
......
...@@ -25,9 +25,9 @@ limitations under the License. */ ...@@ -25,9 +25,9 @@ limitations under the License. */
#include "DataProvider.h" #include "DataProvider.h"
#include "paddle/utils/Locks.h" #include "paddle/legacy/utils/Locks.h"
#include "paddle/utils/PythonUtil.h" #include "paddle/legacy/utils/PythonUtil.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#include "Evaluator.h" #include "Evaluator.h"
#include "paddle/legacy/gserver/gradientmachines/NeuralNetwork.h" #include "paddle/legacy/gserver/gradientmachines/NeuralNetwork.h"
#include "paddle/utils/StringUtil.h" #include "paddle/legacy/utils/StringUtil.h"
namespace paddle { namespace paddle {
......
...@@ -16,7 +16,7 @@ limitations under the License. */ ...@@ -16,7 +16,7 @@ limitations under the License. */
#include <vector> #include <vector>
#include "paddle/legacy/math/Vector.h" #include "paddle/legacy/math/Vector.h"
#include "paddle/utils/StringUtil.h" #include "paddle/legacy/utils/StringUtil.h"
#include "Evaluator.h" #include "Evaluator.h"
......
...@@ -14,8 +14,8 @@ limitations under the License. */ ...@@ -14,8 +14,8 @@ limitations under the License. */
#include "paddle/legacy/gserver/evaluators/Evaluator.h" #include "paddle/legacy/gserver/evaluators/Evaluator.h"
#include "paddle/legacy/gserver/gradientmachines/NeuralNetwork.h" #include "paddle/legacy/gserver/gradientmachines/NeuralNetwork.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#include "paddle/utils/StringUtil.h" #include "paddle/legacy/utils/StringUtil.h"
DECLARE_int32(trainer_id); DECLARE_int32(trainer_id);
......
...@@ -18,8 +18,8 @@ limitations under the License. */ ...@@ -18,8 +18,8 @@ limitations under the License. */
#include "ModelConfig.pb.h" #include "ModelConfig.pb.h"
#include "paddle/legacy/parameter/Argument.h" #include "paddle/legacy/parameter/Argument.h"
#include "paddle/legacy/pserver/ParameterClient2.h" #include "paddle/legacy/pserver/ParameterClient2.h"
#include "paddle/utils/ClassRegistrar.h" #include "paddle/legacy/utils/ClassRegistrar.h"
#include "paddle/utils/Error.h" #include "paddle/legacy/utils/Error.h"
namespace paddle { namespace paddle {
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#include "GradientMachine.h" #include "GradientMachine.h"
#include <fstream> #include <fstream>
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "NeuralNetwork.h" #include "NeuralNetwork.h"
#include "hl_gpu.h" #include "hl_gpu.h"
......
...@@ -24,7 +24,7 @@ limitations under the License. */ ...@@ -24,7 +24,7 @@ limitations under the License. */
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/legacy/parameter/Parameter.h" #include "paddle/legacy/parameter/Parameter.h"
#include "paddle/legacy/parameter/ParameterUpdaterBase.h" #include "paddle/legacy/parameter/ParameterUpdaterBase.h"
#include "paddle/utils/Thread.h" #include "paddle/legacy/utils/Thread.h"
#ifndef PADDLE_MOBILE_INFERENCE #ifndef PADDLE_MOBILE_INFERENCE
#include "paddle/legacy/gserver/evaluators/Evaluator.h" #include "paddle/legacy/gserver/evaluators/Evaluator.h"
......
...@@ -14,9 +14,9 @@ limitations under the License. */ ...@@ -14,9 +14,9 @@ limitations under the License. */
#include "MultiGradientMachine.h" #include "MultiGradientMachine.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#include "NeuralNetwork.h" #include "NeuralNetwork.h"
#include "ParallelNeuralNetwork.h" #include "ParallelNeuralNetwork.h"
......
...@@ -19,8 +19,8 @@ limitations under the License. */ ...@@ -19,8 +19,8 @@ limitations under the License. */
#include "GradientMachine.h" #include "GradientMachine.h"
#include "hl_gpu.h" #include "hl_gpu.h"
#include "paddle/utils/Locks.h" #include "paddle/legacy/utils/Locks.h"
#include "paddle/utils/Queue.h" #include "paddle/legacy/utils/Queue.h"
namespace paddle { namespace paddle {
......
...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include <algorithm> #include <algorithm>
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#include "paddle/utils/Util.h" #include "paddle/legacy/utils/Util.h"
#include "MultiNetwork.h" #include "MultiNetwork.h"
......
...@@ -17,7 +17,7 @@ limitations under the License. */ ...@@ -17,7 +17,7 @@ limitations under the License. */
#include "GradientMachine.h" #include "GradientMachine.h"
#include "NeuralNetwork.h" #include "NeuralNetwork.h"
#include "paddle/utils/Locks.h" #include "paddle/legacy/utils/Locks.h"
namespace paddle { namespace paddle {
......
...@@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ...@@ -12,13 +12,13 @@ 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 "paddle/utils/Util.h" #include "paddle/legacy/utils/Util.h"
#include "NeuralNetwork.h" #include "NeuralNetwork.h"
#include "hl_gpu.h" #include "hl_gpu.h"
#include "paddle/utils/CustomStackTrace.h" #include "paddle/legacy/utils/CustomStackTrace.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#ifdef PADDLE_WITH_MKLDNN #ifdef PADDLE_WITH_MKLDNN
#include "paddle/legacy/gserver/layers/MKLDNNLayer.h" #include "paddle/legacy/gserver/layers/MKLDNNLayer.h"
......
...@@ -25,7 +25,7 @@ limitations under the License. */ ...@@ -25,7 +25,7 @@ limitations under the License. */
#include "paddle/legacy/gserver/layers/DataLayer.h" #include "paddle/legacy/gserver/layers/DataLayer.h"
#include "paddle/legacy/gserver/layers/Layer.h" #include "paddle/legacy/gserver/layers/Layer.h"
#include "paddle/legacy/parameter/Parameter.h" #include "paddle/legacy/parameter/Parameter.h"
#include "paddle/utils/ClassRegistrar.h" #include "paddle/legacy/utils/ClassRegistrar.h"
namespace paddle { namespace paddle {
/* /*
......
...@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ...@@ -12,8 +12,8 @@ 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 "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#include "paddle/utils/Util.h" #include "paddle/legacy/utils/Util.h"
#include "ParallelNeuralNetwork.h" #include "ParallelNeuralNetwork.h"
......
...@@ -20,9 +20,9 @@ limitations under the License. */ ...@@ -20,9 +20,9 @@ limitations under the License. */
#include <limits> #include <limits>
#include "NeuralNetwork.h" #include "NeuralNetwork.h"
#include "paddle/legacy/gserver/layers/AgentLayer.h" #include "paddle/legacy/gserver/layers/AgentLayer.h"
#include "paddle/utils/Flags.h" #include "paddle/legacy/utils/Flags.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#include "paddle/utils/Util.h" #include "paddle/legacy/utils/Util.h"
DEFINE_string(diy_beam_search_prob_so, "", "the diy beam search cost so"); DEFINE_string(diy_beam_search_prob_so, "", "the diy beam search cost so");
......
...@@ -18,7 +18,7 @@ limitations under the License. */ ...@@ -18,7 +18,7 @@ limitations under the License. */
#include "GradientMachine.h" #include "GradientMachine.h"
#include "NeuralNetwork.h" #include "NeuralNetwork.h"
#include "paddle/utils/Locks.h" #include "paddle/legacy/utils/Locks.h"
namespace paddle { namespace paddle {
......
...@@ -14,9 +14,9 @@ limitations under the License. */ ...@@ -14,9 +14,9 @@ limitations under the License. */
#include "AddtoLayer.h" #include "AddtoLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -16,7 +16,7 @@ limitations under the License. */ ...@@ -16,7 +16,7 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
namespace paddle { namespace paddle {
......
...@@ -14,9 +14,9 @@ limitations under the License. */ ...@@ -14,9 +14,9 @@ limitations under the License. */
#include "AgentLayer.h" #include "AgentLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -16,7 +16,7 @@ limitations under the License. */ ...@@ -16,7 +16,7 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
namespace paddle { namespace paddle {
......
...@@ -14,9 +14,9 @@ limitations under the License. */ ...@@ -14,9 +14,9 @@ limitations under the License. */
#include "AverageLayer.h" #include "AverageLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#include "BatchNormBaseLayer.h" #include "BatchNormBaseLayer.h"
#include "BatchNormalizationLayer.h" #include "BatchNormalizationLayer.h"
#include "Layer.h" #include "Layer.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#ifdef PADDLE_WITH_CUDA #ifdef PADDLE_WITH_CUDA
#include "CudnnBatchNormLayer.h" #include "CudnnBatchNormLayer.h"
#endif #endif
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#pragma once #pragma once
#include "Layer.h" #include "Layer.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -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 "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#ifdef PADDLE_WITH_CUDA #ifdef PADDLE_WITH_CUDA
#include "hl_batch_transpose.h" #include "hl_batch_transpose.h"
#endif #endif
......
...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "BilinearInterpLayer.h" #include "BilinearInterpLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#include "BlockExpandLayer.h" #include "BlockExpandLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
namespace paddle { namespace paddle {
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "Projection.h" #include "Projection.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and ...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "ContextProjection.h" #include "ContextProjection.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "Conv3DLayer.h" #include "Conv3DLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#include "ConvBaseLayer.h" #include "ConvBaseLayer.h"
#include "paddle/legacy/math/MathUtils.h" #include "paddle/legacy/math/MathUtils.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
namespace paddle { namespace paddle {
bool ConvBaseLayer::init(const LayerMap& layerMap, bool ConvBaseLayer::init(const LayerMap& layerMap,
......
...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and ...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "ConvBaseProjection.h" #include "ConvBaseProjection.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and ...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "ConvProjection.h" #include "ConvProjection.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -14,8 +14,8 @@ limitations under the License. */ ...@@ -14,8 +14,8 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and ...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "ConvTransProjection.h" #include "ConvTransProjection.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -14,8 +14,8 @@ limitations under the License. */ ...@@ -14,8 +14,8 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "CosSimLayer.h" #include "CosSimLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -16,7 +16,7 @@ limitations under the License. */ ...@@ -16,7 +16,7 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
namespace paddle { namespace paddle {
/** /**
......
...@@ -14,8 +14,8 @@ limitations under the License. */ ...@@ -14,8 +14,8 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
/** /**
......
...@@ -16,7 +16,7 @@ limitations under the License. */ ...@@ -16,7 +16,7 @@ limitations under the License. */
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include <memory> #include <memory>
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/legacy/math/SparseMatrix.h" #include "paddle/legacy/math/SparseMatrix.h"
......
...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and ...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "CropLayer.h" #include "CropLayer.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
REGISTER_LAYER(crop, CropLayer); REGISTER_LAYER(crop, CropLayer);
......
...@@ -15,7 +15,7 @@ limitations under the License. */ ...@@ -15,7 +15,7 @@ limitations under the License. */
#include "CudnnBatchNormLayer.h" #include "CudnnBatchNormLayer.h"
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/cuda/include/hl_batch_norm.h" #include "paddle/legacy/cuda/include/hl_batch_norm.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -17,7 +17,7 @@ limitations under the License. */ ...@@ -17,7 +17,7 @@ limitations under the License. */
#include <cudnn.h> #include <cudnn.h>
#include "BatchNormBaseLayer.h" #include "BatchNormBaseLayer.h"
#include "Layer.h" #include "Layer.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "CudnnConvBaseLayer.h" #include "CudnnConvBaseLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
REGISTER_LAYER(cudnn_conv, CudnnConvBaseLayer); REGISTER_LAYER(cudnn_conv, CudnnConvBaseLayer);
......
...@@ -14,8 +14,8 @@ limitations under the License. */ ...@@ -14,8 +14,8 @@ limitations under the License. */
#include "CudnnPoolLayer.h" #include "CudnnPoolLayer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "DataNormLayer.h" #include "DataNormLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -16,7 +16,7 @@ limitations under the License. */ ...@@ -16,7 +16,7 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
namespace paddle { namespace paddle {
......
...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "DeConv3DLayer.h" #include "DeConv3DLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -14,8 +14,8 @@ limitations under the License. */ ...@@ -14,8 +14,8 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and ...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
namespace paddle { namespace paddle {
/** /**
......
...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "ExpandConvLayer.h" #include "ExpandConvLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
DEFINE_bool(use_nnpack, DEFINE_bool(use_nnpack,
false, false,
......
...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "ExpandLayer.h" #include "ExpandLayer.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -16,8 +16,8 @@ limitations under the License. */ ...@@ -16,8 +16,8 @@ limitations under the License. */
#include <algorithm> #include <algorithm>
#include <vector> #include <vector>
#include "paddle/legacy/math/SparseMatrix.h" #include "paddle/legacy/math/SparseMatrix.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -16,7 +16,7 @@ limitations under the License. */ ...@@ -16,7 +16,7 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
namespace paddle { namespace paddle {
/** /**
......
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and ...@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#pragma once #pragma once
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
#include "Projection.h" #include "Projection.h"
......
...@@ -16,8 +16,8 @@ limitations under the License. */ ...@@ -16,8 +16,8 @@ limitations under the License. */
#include <algorithm> #include <algorithm>
#include <vector> #include <vector>
#include "paddle/legacy/math/SparseMatrix.h" #include "paddle/legacy/math/SparseMatrix.h"
#include "paddle/utils/Logging.h" #include "paddle/legacy/utils/Logging.h"
#include "paddle/utils/Stat.h" #include "paddle/legacy/utils/Stat.h"
namespace paddle { namespace paddle {
......
...@@ -16,7 +16,7 @@ limitations under the License. */ ...@@ -16,7 +16,7 @@ limitations under the License. */
#include "Layer.h" #include "Layer.h"
#include "paddle/legacy/math/Matrix.h" #include "paddle/legacy/math/Matrix.h"
#include "paddle/utils/ThreadLocal.h" #include "paddle/legacy/utils/ThreadLocal.h"
namespace paddle { namespace paddle {
/** /**
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册