This is an automated email from the ASF dual-hosted git repository.

manuseth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new bb8f6ce  change partitioning default to False for hybridize and 
optimize_for (#19531)
bb8f6ce is described below

commit bb8f6cedb3734a1e99e41685427fbd4f2acad4de
Author: Manu Seth <[email protected]>
AuthorDate: Fri Nov 13 20:08:31 2020 -0800

    change partitioning default to False for hybridize and optimize_for (#19531)
---
 python/mxnet/gluon/block.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/mxnet/gluon/block.py b/python/mxnet/gluon/block.py
index 110504d..df670a1 100644
--- a/python/mxnet/gluon/block.py
+++ b/python/mxnet/gluon/block.py
@@ -1175,7 +1175,7 @@ class HybridBlock(Block):
             out = [out]
         return _regroup(out, self._out_format)
 
-    def optimize_for(self, x, *args, backend=None, backend_opts=None, 
clear=True, partition_if_dynamic=True, **kwargs):
+    def optimize_for(self, x, *args, backend=None, backend_opts=None, 
clear=True, partition_if_dynamic=False, **kwargs):
         """Partitions the current HybridBlock and optimizes it for a given 
backend
         without executing a forward pass. Modifies the HybridBlock in-place.
 
@@ -1259,7 +1259,7 @@ class HybridBlock(Block):
             self._active = False
         self._clear_cached_op()
 
-    def hybridize(self, active=True, backend=None, backend_opts=None, 
clear=True, partition_if_dynamic=True, **kwargs):
+    def hybridize(self, active=True, backend=None, backend_opts=None, 
clear=True, partition_if_dynamic=False, **kwargs):
         """Activates or deactivates :py:class:`HybridBlock` s recursively. Has 
no effect on
         non-hybrid children.
 

Reply via email to