Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Discussion options

You must be logged in to vote

@gxkevin
The SyncCopyFromCPU() function is used to copy the data in source NDArray in contiguous CPU memory to a target NDArray.
The size parameter will be a product of all the dimensions of the shape of target NDArray.

Here are links that point to usage of this function in some of the examples. I hope this answers your question.
https://github.com/apache/incubator-mxnet/blob/4a9e9f67a5e7e5ddf2e394c6381f4f6449626af2/cpp-package/example/inference/inception_inference.cpp#L215

https://github.com/apache/incubator-mxnet/blob/4a9e9f67a5e7e5ddf2e394c6381f4f6449626af2/cpp-package/example/inference/inception_inference.cpp#L245

@mxnet-label-bot add [Question, Pending Requester Info]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcoabreu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants