mirror of https://github.com/hpcaitech/ColossalAI
[hotfix] change namespace for meta_trace. (#1541)
parent
a203b709d5
commit
d8a5aded19
|
@ -20,7 +20,7 @@ def meta_trace(module: torch.nn.Module, *args, **kwargs) -> Graph:
|
||||||
>>> graph.print_tabular()
|
>>> graph.print_tabular()
|
||||||
"""
|
"""
|
||||||
graph = Graph()
|
graph = Graph()
|
||||||
namespace = _Namespace()
|
namespace = graph._graph_namespace
|
||||||
|
|
||||||
class MetaProxy(torch.Tensor):
|
class MetaProxy(torch.Tensor):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue