You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/03/23 23:36:47 UTC

[GitHub] [incubator-tvm] jroesch commented on a change in pull request #5039: [Relay] GradientCell Relay Pass

jroesch commented on a change in pull request #5039: [Relay] GradientCell Relay Pass
URL: https://github.com/apache/incubator-tvm/pull/5039#discussion_r396822569
 
 

 ##########
 File path: python/tvm/relay/transform/transform.py
 ##########
 @@ -219,6 +219,18 @@ def DeadCodeElimination(inline_once=False):
     """
     return _ffi_api.DeadCodeElimination(inline_once)
 
+def GradientCell():
+    """Reduces memory usage of tensors with all 0s or 1s
+
+    Parameters
+    ----------
+
+    Returns
+    -------
+    ret: tvm.relay.Pass
+        The registered pass that delays or reduces memory allocation
 
 Review comment:
   ```suggestion
           A pass which delays and/or reduces memory allocation, by lazily allocating 0 or one filled tensors. 
   ```

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