mirror of https://github.com/hpcaitech/ColossalAI
[fx] fixed indentation error in checkpointing codegen (#1385)
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