haojin2 commented on a change in pull request #15358: Numpy hsplit
URL: https://github.com/apache/incubator-mxnet/pull/15358#discussion_r314456576
 
 

 ##########
 File path: src/operator/numpy/np_matrix_op-inl.h
 ##########
 @@ -59,6 +59,222 @@ void NumpyTranspose(const nnvm::NodeAttrs& attrs,
   }
 }
 
 
 Review comment:
   Seems like you're re-using most of the existing 
[SplitOpForward](https://github.com/apache/incubator-mxnet/blob/master/src/operator/tensor/matrix_op-inl.h#L2762-L2823)
 and 
[SplitOpBackward](https://github.com/apache/incubator-mxnet/blob/master/src/operator/tensor/matrix_op-inl.h#L2825-L2887),
 maybe you could refactor the existing code to expose common SplitOpForwardImpl 
and SplitOpBackwardImpl and call these functions from here instead of copying 
the code over.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to