Browse Source

fix(mge/traced_module): fix visualization bug by adding Node to non-const leaf

GitOrigin-RevId: af87f7007e
release-1.11.1
Megvii Engine Team 2 years ago
parent
commit
babecba206
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      imperative/python/megengine/traced_module/pytree.py

+ 1
- 1
imperative/python/megengine/traced_module/pytree.py View File

@@ -189,7 +189,7 @@ def _leaf_type(node):


def _is_const_leaf(node):
if isinstance(node, (RawTensor, NodeMixin, Module)):
if isinstance(node, (RawTensor, Node, NodeMixin, Module)):
return False
return True



Loading…
Cancel
Save