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 = '\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