This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
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
239 changed files
with
38,432 additions
and
0 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 @@ | ||
third_party/brezel/config/project/bazelrc |
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,13 @@ | ||
.jenkins/ | ||
docker/ | ||
results/ | ||
architectures/ | ||
gym-quadcopter/ | ||
Makefile | ||
model/ | ||
modules/ | ||
NN_files/ | ||
run/ | ||
training/ | ||
utils/ | ||
bazel-*/ |
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,4 @@ | ||
#!/bin/bash | ||
# Continuous integration test | ||
# Called inside the container | ||
bazel test --deleted_packages='//papers/hscc_2021/rep/instructions,//papers/hscc_2021/src' //... |
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,5 @@ | ||
#!/bin/bash | ||
make build | ||
export CHECKPOINTS_VOLUME=checkpoints | ||
export RESULTS_VOLUME=results | ||
make test |
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,2 @@ | ||
* | ||
!.gitignore |
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,24 @@ | ||
alias( | ||
name = "training", | ||
actual = "//run:training", | ||
) | ||
|
||
alias( | ||
name = "plots", | ||
actual = "//run:plots", | ||
) | ||
|
||
alias( | ||
name = "export", | ||
actual = "//run:export_sherlock", | ||
) | ||
|
||
alias( | ||
name = "test", | ||
actual = "//run:test", | ||
) | ||
|
||
alias( | ||
name = "observer", | ||
actual = "//run:observer", | ||
) |
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,47 @@ | ||
PLATFORM = third_party/brezel | ||
|
||
# Makes sure the Research Platform gets pulled as a submodule into $(PLATFORM) | ||
# Installs hooks to automate submodule updates on pull | ||
# WARNING: uncommitted modifications in $(PLATFORM) will be lost! | ||
.PHONY: init | ||
init: | ||
git submodule sync --recursive | ||
git submodule update --init --recursive --force | ||
git config core.hooksPath $(PLATFORM)/scripts/githooks/project_repo | ||
|
||
# Upgrade brezel | ||
# Running `make upgrade` will fast-forward folder third_party/brezel into the | ||
# current master commit of the brezel repository. | ||
# You usually need to run this rule if you want to use new features from the Research Platform. | ||
# WARNING: running this command will create a commit in the present project. | ||
# WARNING: uncommitted modifications in $(PLATFORM) will be lost! | ||
.PHONY: upgrade | ||
upgrade: | ||
git submodule foreach git fetch origin | ||
git submodule foreach git checkout origin/master --force | ||
git commit $(PLATFORM) --message 'RESEARCH PLATFORM: upgrade submodule' | ||
|
||
# Call rule from brezel's Makefile | ||
# If the rule is not defined in the present Makefile, we forward it the the Makefile | ||
# located in $(PLATFORM). | ||
# Typical usage: build, run, run-list | ||
.PHONY: phony_explicit | ||
phony_explicit: | ||
%: phony_explicit | ||
@$(MAKE) --no-print-directory --makefile=$(PLATFORM)/Makefile $@ ROOT=$(PWD)/$(PLATFORM) | ||
|
||
|
||
## | ||
# Makefile rules specific to this project | ||
## | ||
|
||
# Path to the bazel sandbox | ||
BAZELBIN = $(shell bazel info bazel-bin 2>/dev/null) | ||
bazel-run: | ||
@ln -s $(BAZELBIN)/run $@ | ||
|
||
.PHONY: tensorboard | ||
tensorboard: | ||
@echo In the container run \t tensorboard --logdir /results/CHOOSE_RESULTS_DIR --bind_all | ||
@echo Open http://localhost:6006 | ||
@docker run -it --rm -u `id -u`:`id -g` -v `pwd`/results:/results -p 6006:6006 tensorflow/tensorflow:latest-gpu |
Oops, something went wrong.