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 2020/02/13 17:28:17 UTC

[GitHub] [incubator-mxnet] leezu commented on a change in pull request #17530: Add deferred compute support

leezu commented on a change in pull request #17530: Add deferred compute support
URL: https://github.com/apache/incubator-mxnet/pull/17530#discussion_r379009156
 
 

 ##########
 File path: include/mxnet/imperative.h
 ##########
 @@ -88,6 +89,77 @@ class Imperative {
              && info.out_grads.size() == 1;
     }
   };
+
+  /*! \brief DCInfo datastructure to enable deferred computation */
+  class DCInfo {
+   public:
+    DCInfo() {
+      // Default constructor provided for the sake of any.h. Should not be used.
+      throw std::invalid_argument("Unsupported default constructor");
+    }
 
 Review comment:
   Good catch. This was only needed in an earlier, unpublished version of this PR.

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


With regards,
Apache Git Services