How to get the NDArray in the C++ files

#1

I want to get the value of variables with the NDArray data structure in the C++ files, such as the recv_buf in PullImpl() function in kvstore_dist.h (shown in the following figure). 39 . Anyone gives me some suggestions? Thank your.

#2

To copy a NDArray you can use the SyncCopyToCPU() function see the docs here: https://mxnet.incubator.apache.org/versions/master/doxygen/classmxnet_1_1cpp_1_1NDArray.html#a84bdfbe193ccadc66f3416323467d3ae

#3

Thank you, Thomas. Got it.