mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-05 11:02:05 +00:00
[fx] refactor memory utils and extend shard utils. (#1754)
* [fx] change memory.py to memory_utils.py. * [fx] add shard utils. * [fx] fix import. * [fx] check code style. * [fx] add comment. * [autoparallel] first move. * [fx] add time computations.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
from colossalai.fx.profiler.memory import activation_size
|
||||
import torch
|
||||
from torch.fx import Node, Graph
|
||||
from torch.fx.graph import _Namespace
|
||||
from torch.fx import Graph, Node
|
||||
from torch.utils._pytree import tree_map
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user