[hotfix] change namespace for meta_trace. (#1541)

This commit is contained in:
Super Daniel
2022-09-06 11:46:12 +08:00
committed by GitHub
parent a203b709d5
commit d8a5aded19

View File

@@ -20,7 +20,7 @@ def meta_trace(module: torch.nn.Module, *args, **kwargs) -> Graph:
>>> graph.print_tabular()
"""
graph = Graph()
namespace = _Namespace()
namespace = graph._graph_namespace
class MetaProxy(torch.Tensor):
"""