You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/11 10:51:06 UTC

[GitHub] lebeg commented on a change in pull request #9371: Fix unit test build

lebeg commented on a change in pull request #9371: Fix unit test build
URL: https://github.com/apache/incubator-mxnet/pull/9371#discussion_r160921511
 
 

 ##########
 File path: tests/cpp/misc/memory_test.cc
 ##########
 @@ -64,40 +64,40 @@ TEST(MEMORY_TEST, MemsetAndMemcopyPerformance) {
     std::cout << "====================================" << std::endl
               << "Data size: " << test::pretty_num(test_size) << std::endl << std::flush;
 
-    std::unique_ptr<uint8_t> buffer_1(new uint8_t[test_size]), buffer_2(new uint8_t[test_size]);
-    uint8_t *src = buffer_1.get(), *dest = buffer_2.get();
+    std::unique_ptr<float> buffer_1(new float[test_size]), buffer_2(new float[test_size]);
 
 Review comment:
   The template parameter should be float[], not just float

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services