mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-08 12:30:42 +00:00
rename
This commit is contained in:
@@ -17,7 +17,7 @@ from torch.fx.node import Argument, Node, _get_qualified_name, _type_repr, map_a
|
||||
|
||||
import colossalai
|
||||
|
||||
from .chunk_region_search import ChunkRegionSearch
|
||||
from .search_chunk import SearchChunk
|
||||
from .utils import delete_free_var_from_last_use, find_idx_by_name, get_node_shape
|
||||
|
||||
CODEGEN_AVAILABLE = True
|
||||
@@ -103,7 +103,7 @@ def emit_code_with_chunk(
|
||||
nodes,
|
||||
emit_node_func,
|
||||
delete_unused_value_func,
|
||||
chunk_region_search: ChunkRegionSearch,
|
||||
chunk_region_search: SearchChunk,
|
||||
chunk_infos,
|
||||
):
|
||||
"""Emit code with nested activation checkpoint
|
||||
@@ -220,7 +220,7 @@ if CODEGEN_AVAILABLE:
|
||||
self.max_memory = max_memory
|
||||
self.meta_node = list(meta_graph.graph.nodes)
|
||||
# find the chunk regions
|
||||
self.chunk_region_search = ChunkRegionSearch(
|
||||
self.chunk_region_search = SearchChunk(
|
||||
meta_graph, max_memory, print_mem
|
||||
)
|
||||
self.chunk_infos = self.chunk_region_search.search_region()
|
||||
|
Reference in New Issue
Block a user