MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / flush

Method flush

python/paddle/base/executor.py:1688–1697  ·  view source on GitHub ↗

flush all trainer param to root_scope

(self)

Source from the content-addressed store, hash-verified

1686 self._default_executor.close()
1687
1688 def flush(self) -> None:
1689 """
1690 flush all trainer param to root_scope
1691 """
1692 if self._closed:
1693 return
1694 for _, trainer_instance in self.trainer_caches.items():
1695 self._default_executor.release_trainer(trainer_instance)
1696 del trainer_instance
1697 self.trainer_caches.clear()
1698
1699 @overload
1700 def run(

Callers 15

run_tidyFunction · 0.45
saveFunction · 0.45
__exit__Method · 0.45
capture_stderrFunction · 0.45
updateMethod · 0.45
normalize_programFunction · 0.45
save_varsFunction · 0.45
saveFunction · 0.45
updateMethod · 0.45
run_adaroundFunction · 0.45
startMethod · 0.45
updateMethod · 0.45

Calls 2

itemsMethod · 0.45
clearMethod · 0.45

Tested by 15

wait_server_readyMethod · 0.36
run_programMethod · 0.36
downloadMethod · 0.36
run_testMethod · 0.36
test_lstm_modelMethod · 0.36
run_programMethod · 0.36
run_testMethod · 0.36
run_programMethod · 0.36
run_testMethod · 0.36
run_testMethod · 0.36
TESTFunction · 0.36