mirror of
https://github.com/gryf/coach.git
synced 2026-01-07 22:34:23 +01:00
Revert "Avoid Memory Leak in Rollout worker"
This reverts commit c694766fad.
This commit is contained in:
@@ -953,12 +953,6 @@ class Agent(AgentInterface):
|
||||
self.input_filter.restore_state_from_checkpoint(checkpoint_dir, checkpoint_prefix)
|
||||
self.pre_network_filter.restore_state_from_checkpoint(checkpoint_dir, checkpoint_prefix)
|
||||
|
||||
if self.ap.task_parameters.framework_type == Frameworks.tensorflow:
|
||||
import tensorflow as tf
|
||||
tf.reset_default_graph()
|
||||
# Recreate all the networks of the agent
|
||||
self.networks = self.create_networks()
|
||||
|
||||
# no output filters currently have an internal state to restore
|
||||
# self.output_filter.restore_state_from_checkpoint(checkpoint_dir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user