def _verify_program(self, main_program):
    '\n        Verify that the program parameter is initialized, prune some unused params,\n        and remove redundant op callstack.\n        '
    self._check_params_all_inited(main_program)
    self._prune_unused_params(main_program)
    return main_program
Verify that the program parameter is initialized, prune some unused params,
and remove redundant op callstack.
def _verify_program(self, main_program):
    '\n        Verify that the program parameter is initialized, prune some unused params,\n        and remove redundant op callstack.\n        '
    self._check_params_all_inited(main_program)
    self._prune_unused_params(main_program)
    return main_program