[autochunk] support parsing blocks (#2506)

This commit is contained in:
oahzxl
2023-01-20 11:18:17 +08:00
committed by GitHub
parent 35c0c0006e
commit c04f183237
7 changed files with 314 additions and 22 deletions

View File

@@ -2,6 +2,14 @@ from typing import Any, Callable, Dict, Iterable, List, Tuple
from torch.fx.node import Node
from colossalai.logging import get_dist_logger
logger = get_dist_logger()
def get_logger():
return logger
def flat_list(inputs: Any) -> List:
"""