samskalicky commented on a change in pull request #17569: Adding sparse support
to MXTensor for custom operators
URL: https://github.com/apache/incubator-mxnet/pull/17569#discussion_r392021465
##########
File path: src/c_api/c_api.cc
##########
@@ -178,6 +229,13 @@ void CustomFComputeDispatcher(const std::string op_name,
return static_cast<void*>((*gpualloc)(size));
};
+ typedef decltype(ndarray_alloc) alloc_type_ndarray;
+ auto ndarray_malloc = [](void* _ndarray_alloc, int index, int indices_len,
int idxptr_len,
Review comment:
can we call this sparse_malloc since its only for sparse?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services