diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 10ea80c1dcd..77abee7d4fc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -28,13 +28,23 @@ jobs: with: repository: pytorch/rl upload-artifact: docs - runner: "linux.g5.4xlarge.nvidia.gpu" - docker-image: "nvidia/cudagl:11.4.0-base" timeout: 120 script: | set -e set -v - apt-get update && apt-get install -y -f git wget gcc g++ dialog apt-utils + # apt-get update && apt-get install -y -f git wget gcc g++ dialog apt-utils + yum makecache + # yum install -y glfw glew mesa-libGL mesa-libGL-devel mesa-libOSMesa-devel egl-utils freeglut + # Install Mesa and OpenGL Libraries: + yum install -y glfw mesa-libGL mesa-libGL-devel egl-utils freeglut mesa-libGLU mesa-libEGL + # Install DRI Drivers: + yum install -y mesa-dri-drivers + # Install Xvfb for Headless Environments: + yum install -y xorg-x11-server-Xvfb + # xhost +local:docker + # Xvfb :1 -screen 0 1024x768x24 & + # export DISPLAY=:1 + root_dir="$(pwd)" conda_dir="${root_dir}/conda" env_dir="${root_dir}/env" @@ -51,7 +61,7 @@ jobs: conda activate "${env_dir}" # 2. upgrade pip, ninja and packaging - apt-get install python3-pip unzip -y -f + # apt-get install python3-pip unzip -y -f python3 -m pip install --upgrade pip python3 -m pip install setuptools ninja packaging cmake -U diff --git a/docs/source/reference/trainers.rst b/docs/source/reference/trainers.rst index 8f6be633743..264534a725c 100644 --- a/docs/source/reference/trainers.rst +++ b/docs/source/reference/trainers.rst @@ -79,7 +79,7 @@ Hooks can be split into 3 categories: **data processing** (``"batch_process"`` a - **Logging** hooks take a batch of data presented as a ``TensorDict`` and write in the logger some information retrieved from that data. Examples include the ``LogValidationReward`` hook, the reward - logger (``LogScaler``) and such. Hooks should return a dictionary (or a None value) containing the + logger (``LogScalar``) and such. Hooks should return a dictionary (or a None value) containing the data to log. The key ``"log_pbar"`` is reserved to boolean values indicating if the logged value should be displayed on the progression bar printed on the training log. @@ -174,7 +174,7 @@ Trainer and hooks BatchSubSampler ClearCudaCache CountFramesLog - LogScaler + LogScalar OptimizerHook LogValidationReward ReplayBufferTrainer diff --git a/test/mocking_classes.py b/test/mocking_classes.py index 77fbff865be..6f666290376 100644 --- a/test/mocking_classes.py +++ b/test/mocking_classes.py @@ -2,6 +2,8 @@ # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +from __future__ import annotations + from typing import Dict, List, Optional import torch