Skip to content

Commit

Permalink
handle export_memory_steps being None (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolsson authored Jun 2, 2023
1 parent ef34798 commit 23ac61b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/py/erupt-ark/erupt_ark/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,14 @@ def construct(
),
1000,
)
memory_proxy = MemoryExporterProxyWrapper(
memory=memory_proxy,
target_memory_name=data_loader.data_group,
inf_steps_per_memory_export=conf.export_memory_steps,
experiment_root_path=engine_config.artifact_location,
)

if conf.export_memory_steps is not None:
memory_proxy = MemoryExporterProxyWrapper(
memory=memory_proxy,
target_memory_name=data_loader.data_group,
inf_steps_per_memory_export=conf.export_memory_steps,
experiment_root_path=engine_config.artifact_location,
)

num_actions = spaces.actions.shape[0]
assert (
Expand Down

0 comments on commit 23ac61b

Please sign in to comment.