use paddle.default_main_program() instead of g_main_program, same for g_start_program
Created by: helinwang
The current implementation of default_main_program
will be:
def default_main_program():
return g_main_program
This change hides the implementation detail (e.g., using g_main_program
) from the user, we can change the implementation in the future much easier.