Merge pull request #859 from hedaoyuan/fix_warning

Fix warning
avx_docs
hedaoyuan 9 years ago committed by GitHub
commit bf47397125

@ -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:
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)
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)

Loading…
Cancel
Save