mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-20 02:10:40 +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 = ''.join(body)
|
||||||
code = '\n'.join(' ' + line for line in code.split('\n'))
|
code = '\n'.join(' ' + line for line in code.split('\n'))
|
||||||
fn_code = f"""
|
fn_code = f"""
|
||||||
{wrap_stmts}
|
{wrap_stmts}
|
||||||
|
|
||||||
{prologue}
|
{prologue}
|
||||||
{code}"""
|
{code}"""
|
||||||
return PythonCode(fn_code, globals_)
|
return PythonCode(fn_code, globals_)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user