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_r393921807
 
 

 ##########
 File path: example/extensions/lib_custom_op/transposecsr_lib.cc
 ##########
 @@ -116,6 +116,8 @@ MXReturnValue inferType(std::map<std::string, std::string> 
attrs,
 MXReturnValue inferSType(std::map<std::string, std::string> attrs,
                         std::vector<int> &instypes,
                         std::vector<int> &outstypes) {
+  if (instypes[0] != kCSRStorage)
+    return MX_FAIL;
 
 Review comment:
   error message telling users they provided the wrong storage type?

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