tqchen edited a comment on issue #17097: [RFC][mxnet 2.0][item 10.1] MXNet 
Imperative Op Invocation Overhead
URL: 
https://github.com/apache/incubator-mxnet/issues/17097#issuecomment-568234198
 
 
   The following fast-path can be addressed in the TVM FFI:
   - ```tuple```, ```list``` via translation in python/cython side (see 
benchmark above)
   - ```str``` is already fast (seem benchmark above)
   - ```Context``` can be quite fast if the object is a tvm object, around same 
mangitude as passing NDArray
   - ```np.dtype``` can get around by by str conversion, or introduce a type 
structure, TVM FFI support DLDataType natively
   - None: natively supported by FFI
   
   The following items needs to be discussed
   - py_slice, Ellipsis Can be supported by adding pyobject support, however 
that introduces dispatching into the FFI layer(making the function not 
accessible to other language frontends). Would be interesting to discuss 
alternatives
   
   

----------------------------------------------------------------
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

Reply via email to