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
89e60d15
Unverified
Commit
89e60d15
authored
Jul 30, 2022
by
Frank Lee
Committed by
GitHub
Jul 30, 2022
Browse files
[fx] fixed indentation error in checkpointing codegen (#1385)
parent
c7221cb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
colossalai/fx/codegen/activation_checkpoint_codegen.py
colossalai/fx/codegen/activation_checkpoint_codegen.py
+3
-3
No files found.
colossalai/fx/codegen/activation_checkpoint_codegen.py
View file @
89e60d15
...
...
@@ -373,10 +373,10 @@ if codegen_available:
code
=
''
.
join
(
body
)
code
=
'
\n
'
.
join
(
' '
+
line
for
line
in
code
.
split
(
'
\n
'
))
fn_code
=
f
"""
{
wrap_stmts
}
{
wrap_stmts
}
{
prologue
}
{
code
}
"""
{
prologue
}
{
code
}
"""
return
PythonCode
(
fn_code
,
globals_
)
else
:
...
...
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