You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/24 07:57:40 UTC

[GitHub] tdomhan commented on a change in pull request #9495: bugfix for kAddTo in swap_axis

tdomhan commented on a change in pull request #9495: bugfix for kAddTo in swap_axis
URL: https://github.com/apache/incubator-mxnet/pull/9495#discussion_r163474132
 
 

 ##########
 File path: src/operator/swapaxis-inl.h
 ##########
 @@ -135,7 +135,7 @@ class SwapAxisOp : public Operator {
                        const std::vector<TBlob> &aux_args) {
     using namespace mshadow;
     Stream<xpu> *s = ctx.get_stream<xpu>();
-
+    CHECK_NE(req[swapaxisenum::kOut], kAddTo);
 
 Review comment:
   it would probably make sense to add a message here to not get very cryptic error messages. Would it not be possible to apply what has been done for the backward pass?

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


With regards,
Apache Git Services