-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,249 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Run C++ tests | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build-and-test: | ||
|
||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install system dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev mesa-common-dev libc++1 | ||
- name: Setup Conda environment. | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: gpudrive | ||
environment-file: environment.yml | ||
|
||
- name: Install dependencies and build the project with Poetry | ||
run: | | ||
poetry install | ||
- name: Run tests | ||
run: | | ||
cd build/ | ||
ctest --rerun-failed --output-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
from dataclasses import dataclass | ||
import torch | ||
|
||
@dataclass | ||
class ExperimentConfig: | ||
""" | ||
Configurations for experiments. | ||
""" | ||
# Rendering options | ||
render: bool = False | ||
render_mode: str = "rgb_array" | ||
render_freq: int = 1 | ||
|
||
# TODO: Logging | ||
log_dir: str = "logs" | ||
|
||
# Hyperparameters | ||
policy: str = "MlpPolicy" | ||
seed: int = 42 | ||
n_steps: int = 2048 | ||
batch_size: int = 256 | ||
verbose: int = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.