Fix instant variable oom in paddle2cinn (#56662)
When using paddle2cinn, CompilationContext.with_instantiate_variables should be set to false, otherwise CINN will instant and manage variables memory, this leads to double the memory usage, which eventually leads to out of memory error. This PR will set CompilationContext.with_instantiate_variables to false before context pass to constructing the graph compiler.
Showing
想要评论请 注册 或 登录