Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Dec 16, 2024
1 parent 1402fae commit c29aef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sota-implementations/td3/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ collector:
replay_buffer:
prb: 0 # use prioritized experience replay
size: 1000000
scratch_dir:
scratch_dir: null

# optim
optim:
Expand Down
2 changes: 1 addition & 1 deletion sota-implementations/td3/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def make_replay_buffer(
prefetch = 0
with (
tempfile.TemporaryDirectory()
if scratch_dir is None
if scratch_dir in ("", None)
else nullcontext(scratch_dir)
) as scratch_dir:
storage_cls = (
Expand Down

0 comments on commit c29aef6

Please sign in to comment.