mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-20 18:30:43 +00:00
[fx] fixed indentation error in checkpointing codegen (#1385)
This commit is contained in:
parent
c7221cb2d4
commit
89e60d1505
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user