Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
865f2e01
Commit
865f2e01
authored
Jan 09, 2023
by
oahzxl
Browse files
rename
parent
a4ed5b0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
colossalai/autochunk/search_chunk.py
colossalai/autochunk/search_chunk.py
+1
-1
colossalai/autochunk/trace_indice.py
colossalai/autochunk/trace_indice.py
+1
-1
No files found.
colossalai/autochunk/search_chunk.py
View file @
865f2e01
...
@@ -48,7 +48,7 @@ class SearchChunk(object):
...
@@ -48,7 +48,7 @@ class SearchChunk(object):
self
.
gm
=
gm
self
.
gm
=
gm
self
.
print_mem
=
print_mem
self
.
print_mem
=
print_mem
self
.
trace_indice
=
TraceIndice
(
list
(
gm
.
graph
.
nodes
))
self
.
trace_indice
=
TraceIndice
(
list
(
gm
.
graph
.
nodes
))
self
.
trace_indice
.
trace_inde
x
()
self
.
trace_indice
.
trace_ind
ic
e
()
self
.
trace_flow
=
TraceFlow
(
self
.
trace_indice
)
self
.
trace_flow
=
TraceFlow
(
self
.
trace_indice
)
self
.
reorder_graph
=
ReorderGraph
(
self
.
trace_indice
)
self
.
reorder_graph
=
ReorderGraph
(
self
.
trace_indice
)
self
.
estimate_memory
=
EstimateMemory
()
self
.
estimate_memory
=
EstimateMemory
()
...
...
colossalai/autochunk/trace_indice.py
View file @
865f2e01
...
@@ -525,7 +525,7 @@ class TraceIndice(object):
...
@@ -525,7 +525,7 @@ class TraceIndice(object):
merge_to
if
i
==
merge_from
else
i
for
i
in
trace
[
"indice"
]
merge_to
if
i
==
merge_from
else
i
for
i
in
trace
[
"indice"
]
]
]
def
trace_inde
x
(
self
):
def
trace_ind
ic
e
(
self
):
for
idx
,
node
in
enumerate
(
self
.
node_list
):
for
idx
,
node
in
enumerate
(
self
.
node_list
):
if
node
.
op
==
"placeholder"
:
if
node
.
op
==
"placeholder"
:
self
.
_assign_all_indice
(
node
,
idx
)
self
.
_assign_all_indice
(
node
,
idx
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment