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/11/13 07:18:16 UTC

[GitHub] aaron900813 opened a new issue #13245: mxnet::cpp::NDArray::WaitAll() take about 160ms

aaron900813 opened a new issue #13245: mxnet::cpp::NDArray::WaitAll() take about 160ms
URL: https://github.com/apache/incubator-mxnet/issues/13245
 
 
    here are codes:
       tValRestart;
       net271_executor->Forward(false);
       std::cout << "Forward use " << tValDuration << " ms" << std::endl; 
       tValRestart;
       auto targetx = net271_executor->outputs[0].Copy(global_cpu_ctx);
       auto targety = net271_executor->outputs[1].Copy(global_cpu_ctx);
       auto targetw = net271_executor->outputs[2].Copy(global_cpu_ctx);
       auto targeth = net271_executor->outputs[3].Copy(global_cpu_ctx);
       auto softmax_score = net271_executor->outputs[4].Copy(global_cpu_ctx);
       auto penalty_t = net271_executor->outputs[5].Copy(global_cpu_ctx);
       std::cout << "copy cpu use " << tValDuration << " ms" << std::endl; 
       tValRestart;
       mxnet::cpp::NDArray::WaitAll();
       std::cout << "waitall use " << tValDuration << " ms" << std::endl; 
   
       Is that normal? 6 outputs are float-type data

----------------------------------------------------------------
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