tqchen commented on a change in pull request #9880: TVM bridge support to JIT 
NDArray Function by TVM
URL: https://github.com/apache/incubator-mxnet/pull/9880#discussion_r170490389
 
 

 ##########
 File path: include/mxnet/tensor_blob.h
 ##########
 @@ -36,8 +36,15 @@
 #include <utility>
 #include <algorithm>
 #include "./base.h"
+
 namespace mxnet {
 
+// redefine DLPack enumeration to be backward compatible.
+const int kCPU = kDLCPU;
+const int kGPU = kDLGPU;
+// extension type code under TVM function.
+const int kTVMNDArrayTypeCode = 19;
 
 Review comment:
   This enumerator is allocated in the TVM side and reserved for MXNet and NNVM 
project, so it is not arbitrary chosen 
https://github.com/dmlc/tvm/blob/master/include/tvm/runtime/c_runtime_api.h#L97
   

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