ashokei commented on a change in pull request #12502: [NGRAPH] MXNet - nGraph
initial integration
URL: https://github.com/apache/incubator-mxnet/pull/12502#discussion_r221332555
##########
File path: include/mxnet/ndarray.h
##########
@@ -783,6 +792,11 @@ class NDArray {
/*! This is created when data is stored in MKLDNN format.
*/
std::shared_ptr<MKLDNNMemory> mkl_mem_;
+#endif
+#if MXNET_USE_NGRAPH == 1
+ /*! this is set if ngraph tensorview is associated with this ndarray
+ */
+ std::shared_ptr<ngraph::runtime::TensorView> tensor_view_;
Review comment:
for performance reasons, nGraph mxnet integration needs to reuse memory
allocated by mxnet (avoid reallocation/memcpy etc), and also uniquely map
ndarray with ngraph integration.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services