File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ class Matrix : public BaseMatrix {
408408 LOG (FATAL) << " Not implemented" ;
409409 }
410410
411- virtual void addBias (Matrix& b, real scale, bool sharedBias) {
411+ void addBias (Matrix& b, real scale, bool sharedBias) {
412412 if (!sharedBias) {
413413 addBias (b, scale);
414414 } else {
@@ -425,7 +425,7 @@ class Matrix : public BaseMatrix {
425425 LOG (FATAL) << " Not implemented" ;
426426 }
427427
428- virtual void collectBias (Matrix& a, real scale, bool sharedBias) {
428+ void collectBias (Matrix& a, real scale, bool sharedBias) {
429429 if (!sharedBias) {
430430 collectBias (a, scale);
431431 } else {
Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ add_simple_unittest(test_CpuGpuVector)
1616add_simple_unittest(test_Allocator)
1717
1818if (WITH_GPU)
19- if (COMPILER_SUPPORT_CXX11)
20- CUDA_ADD_EXECUTABLE(test_Tensor test_Tensor.cu)
21- link_paddle_test(test_Tensor)
22- CUDA_ADD_EXECUTABLE(test_lazyAssign test_lazyAssign.cu)
23- link_paddle_test(test_lazyAssign)
24- endif ()
19+ CUDA_ADD_EXECUTABLE(test_Tensor test_Tensor.cu)
20+ link_paddle_test(test_Tensor)
21+ CUDA_ADD_EXECUTABLE(test_lazyAssign test_lazyAssign.cu)
22+ link_paddle_test(test_lazyAssign)
2523else ()
2624 compile_cu_as_cpp(test_Tensor.cu)
2725 add_unittest(test_Tensor test_Tensor.cu)
You can’t perform that action at this time.
0 commit comments