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_r387423284
##########
File path: src/c_api/c_api.cc
##########
@@ -222,9 +257,27 @@ void CustomFComputeDispatcher(const std::string op_name,
out_shapes.data(), out_dims.data(),
out_data.data(), out_types.data(),
out_verIDs.data(), out_dev_type.data(),
out_dev_id.data(),
out_data.size(),
- cpu_malloc, &cpu_alloc, gpu_malloc, &gpu_alloc,
cuda_stream))
+ cpu_malloc, &cpu_alloc, gpu_malloc, &gpu_alloc,
cuda_stream,
+ in_indices.data(), in_indptr.data(),
+ in_indices_shapes.data(), in_indptr_shapes.data(),
+ tmp_data, col_index, row_ptr))
<< "Error calling FStatefulCompute for custom operator '" << op_name <<
"'";
}
+
+ // Alloc space for sparse output and copy data to saprse NDArray.
Review comment:
saprse ==> 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