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
18a51c87
Commit
18a51c87
authored
Jan 09, 2023
by
oahzxl
Browse files
rename test
parent
cb68ee86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
tests/test_autochunk/test_autochunk_codegen.py
tests/test_autochunk/test_autochunk_codegen.py
+1
-3
No files found.
tests/test_autochunk/test_autochunk.py
→
tests/test_autochunk/test_autochunk
_codegen
.py
View file @
18a51c87
...
...
@@ -18,9 +18,7 @@ def _test_fwd(model: torch.nn.Module, gm: ColoGraphModule, node, pair):
torch
.
cuda
.
reset_peak_memory_stats
()
now_mem
=
torch
.
cuda
.
memory_allocated
()
/
1024
**
2
with
torch
.
no_grad
():
node1
=
node
.
clone
()
pair1
=
pair
.
clone
()
gm
(
node1
,
pair1
)
gm
(
node
.
clone
(),
pair
.
clone
())
new_now_mem
=
torch
.
cuda
.
memory_allocated
()
/
1024
**
2
new_max_mem
=
torch
.
cuda
.
max_memory_allocated
()
/
1024
**
2
print
(
...
...
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