piiswrong commented on a change in pull request #7082: Sparse Tensor: request 
for reviews
URL: https://github.com/apache/incubator-mxnet/pull/7082#discussion_r130257465
 
 

 ##########
 File path: python/mxnet/_ctypes/ndarray.py
 ##########
 @@ -61,22 +70,29 @@ def _imperative_invoke(handle, ndargs, keys, vals, out):
         output_vars = ctypes.POINTER(NDArrayHandle)()
         num_output = ctypes.c_int(0)
 
-    check_call(_LIB.MXImperativeInvoke(
+    # return output stypes to avoid the c_api call for checking
+    # a handle's stype in _ndarray_cls
+    out_stypes = ctypes.POINTER(ctypes.c_int)()
+
+    check_call(_LIB.MXImperativeInvokeEx(
 
 Review comment:
   do this for cachedop too
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to