KexinFeng commented on a change in pull request #20559:
URL: https://github.com/apache/incubator-mxnet/pull/20559#discussion_r697707852



##########
File path: python/mxnet/gluon/block.py
##########
@@ -1635,6 +1643,46 @@ def reset_ctx(self, ctx):
         for p in params.values():
             p.reset_ctx(ctx)
 
+    def mark_vars(self, var_arrays):
+        """Mark the nleaf nodes and with deferred computation turned off
+
+        Parameters
+        ----------
+        vars: NDArrays or List[NDArrays] with nonempty 
deferredcomputation_entry_
+        """
+        if not self._active:
+            raise RuntimeError('Hybridize must be active in order to use 
mark_vars')

Review comment:
       Now both hybridized and unhybrized are unified. This is shown in the 
last two examples in unittest/test_autograd.py




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to