You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/09/28 19:43:09 UTC

[GitHub] [incubator-mxnet] kpuatamazon opened a new issue #19245: Performance: avoid memory allocation in MXNDArrayAt

kpuatamazon opened a new issue #19245:
URL: https://github.com/apache/incubator-mxnet/issues/19245


   ## Description
   
   I think all `MXNDArrayAt` and `MXNDArrayAt64` is index an array to (eventually) return a scalar.  An operation users might call frequently.  It should not require memory allocation, yet the current code creates a `new NDArray` that in turn allocates its own buffer.  
   
   https://github.com/apache/incubator-mxnet/blob/e5a781430ba9e30584c2c58c3ce60b2159b4a08c/src/c_api/c_api.cc#L1980-L1998
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org