mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-08 12:30:42 +00:00
close mem and code print
This commit is contained in:
@@ -214,13 +214,13 @@ def emit_code_with_chunk(
|
||||
if CODEGEN_AVAILABLE:
|
||||
|
||||
class AutoChunkCodeGen(CodeGen):
|
||||
def __init__(self, meta_graph, max_memory=None):
|
||||
def __init__(self, meta_graph, max_memory=None, print_mem=False):
|
||||
super().__init__()
|
||||
self.meta_graph = meta_graph
|
||||
self.max_memory = max_memory
|
||||
self.meta_node = list(meta_graph.graph.nodes)
|
||||
# find the chunk regions
|
||||
self.chunk_region_search = ChunkRegionSearch(meta_graph, max_memory)
|
||||
self.chunk_region_search = ChunkRegionSearch(meta_graph, max_memory, print_mem)
|
||||
self.chunk_infos = self.chunk_region_search.search_region()
|
||||
|
||||
def _gen_python_code(
|
||||
|
Reference in New Issue
Block a user