From bda2008630ad22b0be6da96c9fcb53e520c0e70e Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Fri, 14 Apr 2017 14:41:46 +0800 Subject: [PATCH] Add TODO for GPU unittest --- paddle/capi/tests/test_Arguments.cpp | 1 + paddle/capi/tests/test_GradientMachine.cpp | 1 + paddle/capi/tests/test_Matrix.cpp | 1 + paddle/capi/tests/test_Vector.cpp | 1 + 4 files changed, 4 insertions(+) diff --git a/paddle/capi/tests/test_Arguments.cpp b/paddle/capi/tests/test_Arguments.cpp index f56391d51e3..012901a4916 100644 --- a/paddle/capi/tests/test_Arguments.cpp +++ b/paddle/capi/tests/test_Arguments.cpp @@ -29,6 +29,7 @@ static std::vector randomBuffer(size_t bufSize) { } TEST(CAPIArguments, create) { + //! TODO(yuyang18): Test GPU Code. paddle_arguments args = paddle_arguments_create_none(); uint64_t size; ASSERT_EQ(kPD_NO_ERROR, paddle_arguments_size(args, &size)); diff --git a/paddle/capi/tests/test_GradientMachine.cpp b/paddle/capi/tests/test_GradientMachine.cpp index be7dfadddc3..6c8d74c90b2 100644 --- a/paddle/capi/tests/test_GradientMachine.cpp +++ b/paddle/capi/tests/test_GradientMachine.cpp @@ -33,6 +33,7 @@ static std::vector randomBuffer(size_t bufSize) { } TEST(GradientMachine, testPredict) { + //! TODO(yuyang18): Test GPU Code. paddle::TrainerConfigHelper config("./test_predict_network.py"); std::string buffer; ASSERT_TRUE(config.getModelConfig().SerializeToString(&buffer)); diff --git a/paddle/capi/tests/test_Matrix.cpp b/paddle/capi/tests/test_Matrix.cpp index 71dc2064dd0..4bf9a9d6a9f 100644 --- a/paddle/capi/tests/test_Matrix.cpp +++ b/paddle/capi/tests/test_Matrix.cpp @@ -16,6 +16,7 @@ limitations under the License. */ #include "gtest/gtest.h" TEST(CAPIMatrix, create) { + //! TODO(yuyang18): Test GPU Code. paddle_matrix mat = paddle_matrix_create(128, 32, false); std::vector sampleRow; sampleRow.resize(32); diff --git a/paddle/capi/tests/test_Vector.cpp b/paddle/capi/tests/test_Vector.cpp index c5c57b7288d..365160dc9a0 100644 --- a/paddle/capi/tests/test_Vector.cpp +++ b/paddle/capi/tests/test_Vector.cpp @@ -16,6 +16,7 @@ limitations under the License. */ #include "gtest/gtest.h" TEST(CAPIVector, create) { + //! TODO(yuyang18): Test GPU Code. paddle_ivector vec; int array[3] = {1, 2, 3}; vec = paddle_ivector_create(array, 3, true, false); -- GitLab