wkcn commented on a change in pull request #17204: Enhancements for MXTensor 
for custom operators
URL: https://github.com/apache/incubator-mxnet/pull/17204#discussion_r363061195
 
 

 ##########
 File path: include/mxnet/lib_api.h
 ##########
 @@ -277,6 +283,14 @@ struct MXTensor {
     return size;
   }
 
+  /*! \brief helper function to compare two MXTensors */
+  inline bool isSame(const MXTensor &oth) {
 
 Review comment:
   For C++ vector container, `operator==` compares the values.
   ```c++
   #include <iostream>
   #include <vector>
   using namespace std;
   
   int main() {
     vector<int> a{1,2,3};
     vector<int> b{1,2,3};
     vector<int> c{1,2,4};
     cout << (a == b) << endl; // 1
     cout << (a == c) << endl; // 0
     return 0;
   }
   ```

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