提交 bf473971 编写于 作者: H hedaoyuan 提交者: GitHub

Merge pull request #859 from hedaoyuan/fix_warning

Fix warning
...@@ -408,7 +408,7 @@ public: ...@@ -408,7 +408,7 @@ public:
LOG(FATAL) << "Not implemented"; LOG(FATAL) << "Not implemented";
} }
virtual void addBias(Matrix& b, real scale, bool sharedBias) { void addBias(Matrix& b, real scale, bool sharedBias) {
if (!sharedBias) { if (!sharedBias) {
addBias(b, scale); addBias(b, scale);
} else { } else {
...@@ -425,7 +425,7 @@ public: ...@@ -425,7 +425,7 @@ public:
LOG(FATAL) << "Not implemented"; LOG(FATAL) << "Not implemented";
} }
virtual void collectBias(Matrix& a, real scale, bool sharedBias) { void collectBias(Matrix& a, real scale, bool sharedBias) {
if (!sharedBias) { if (!sharedBias) {
collectBias(a, scale); collectBias(a, scale);
} else { } else {
......
...@@ -16,12 +16,10 @@ add_simple_unittest(test_CpuGpuVector) ...@@ -16,12 +16,10 @@ add_simple_unittest(test_CpuGpuVector)
add_simple_unittest(test_Allocator) add_simple_unittest(test_Allocator)
if(WITH_GPU) if(WITH_GPU)
if(COMPILER_SUPPORT_CXX11) CUDA_ADD_EXECUTABLE(test_Tensor test_Tensor.cu)
CUDA_ADD_EXECUTABLE(test_Tensor test_Tensor.cu) link_paddle_test(test_Tensor)
link_paddle_test(test_Tensor) CUDA_ADD_EXECUTABLE(test_lazyAssign test_lazyAssign.cu)
CUDA_ADD_EXECUTABLE(test_lazyAssign test_lazyAssign.cu) link_paddle_test(test_lazyAssign)
link_paddle_test(test_lazyAssign)
endif()
else() else()
compile_cu_as_cpp(test_Tensor.cu) compile_cu_as_cpp(test_Tensor.cu)
add_unittest(test_Tensor test_Tensor.cu) add_unittest(test_Tensor test_Tensor.cu)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册