From 90c4cd8323ab7dc375e70ce9e84949854f58ec80 Mon Sep 17 00:00:00 2001 From: liaogang Date: Sat, 15 Jul 2017 08:29:55 +0800 Subject: [PATCH] FIX: header file --- paddle/framework/tensor.h | 2 +- paddle/platform/device_context.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/paddle/framework/tensor.h b/paddle/framework/tensor.h index 5fdbb4f07a..c6b9c00554 100644 --- a/paddle/framework/tensor.h +++ b/paddle/framework/tensor.h @@ -18,8 +18,8 @@ limitations under the License. */ #include #include #include "paddle/framework/ddim.h" -#include "paddle/platform/enforce.h" #include "paddle/memory/memory.h" +#include "paddle/platform/enforce.h" #include "paddle/platform/place.h" namespace paddle { diff --git a/paddle/platform/device_context.h b/paddle/platform/device_context.h index d2569fdc91..2dded7d79e 100644 --- a/paddle/platform/device_context.h +++ b/paddle/platform/device_context.h @@ -12,15 +12,16 @@ limitations under the License. */ #pragma once #include "paddle/platform/enforce.h" +#include "paddle/platform/place.h" + #ifndef PADDLE_ONLY_CPU #include "paddle/platform/dynload/cublas.h" #include "paddle/platform/dynload/cudnn.h" #include "paddle/platform/dynload/curand.h" -#include "paddle/platform/error.h" #include "paddle/platform/gpu_info.h" #define EIGEN_USE_GPU #endif -#include + #include #include -- GitLab