Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ jobs:
cd ..

# 11. Build doc
export MAX_IDLE_COUNT=180 # Max 180 secs before killing an unresponsive collector
export BATCHED_PIPE_TIMEOUT=180
cd ./docs
# timeout 7m bash -ic "MUJOCO_GL=egl sphinx-build ./source _local_build" || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi
# bash -ic "PYOPENGL_PLATFORM=egl MUJOCO_GL=egl sphinx-build ./source _local_build" || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi
Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"abort_on_example_error": True,
"show_memory": True,
"capture_repr": ("_repr_html_", "__repr__"), # capture representations
"write_computation_times": True,
}

napoleon_use_ivar = True
Expand Down
6 changes: 6 additions & 0 deletions tutorials/sphinx-tutorials/coding_ddpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,12 @@ def ceil_div(x, y):
collector.shutdown()
del collector

try:
parallel_env.close()
del parallel_env
except Exception:
pass

###############################################################################
# Experiment results
# ------------------
Expand Down
3 changes: 3 additions & 0 deletions tutorials/sphinx-tutorials/coding_dqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,9 @@ def print_csv_files_in_folder(folder_path):

print_csv_files_in_folder(logger.experiment.log_dir)

trainer.shutdown()
del trainer

###############################################################################
# Conclusion and possible improvements
# ------------------------------------
Expand Down
Loading