From a1a1109ccc996b80678a07683bb8b26b86a60338 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Thu, 12 Jul 2018 15:51:09 +0800 Subject: [PATCH] Improve Code --- paddle/fluid/platform/CMakeLists.txt | 2 +- python/setup.py.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/platform/CMakeLists.txt b/paddle/fluid/platform/CMakeLists.txt index 20037d076..e0d7937ae 100644 --- a/paddle/fluid/platform/CMakeLists.txt +++ b/paddle/fluid/platform/CMakeLists.txt @@ -46,7 +46,7 @@ ENDIF() # memcpy depends on device_context, here add deps individually for # avoiding cycle dependencies cc_library(device_context SRCS device_context.cc init.cc DEPS malloc - place eigen3 stringpiece cpu_helper ${GPU_CTX_DEPS} ${MKLDNN_CTX_DEPS}) + place eigen3 stringpiece cpu_helper framework_proto ${GPU_CTX_DEPS} ${MKLDNN_CTX_DEPS}) nv_test(device_context_test SRCS device_context_test.cu DEPS device_context gpu_info) cc_test(init_test SRCS init_test.cc DEPS device_context) diff --git a/python/setup.py.in b/python/setup.py.in index 52138b414..d620b5418 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -47,7 +47,7 @@ def is_taged(): except: return False - if git_tag.replace('v', '') == '@PADDLE_VERSION@': + if str(git_tag).replace('v', '') == '@PADDLE_VERSION@': return True else: return False -- GitLab