Skip to content

Commit

Permalink
[datasets] Add a new Dataset class.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins authored and bwasti committed Aug 3, 2021
1 parent d373b67 commit 17fed3e
Show file tree
Hide file tree
Showing 8 changed files with 474 additions and 23 deletions.
2 changes: 1 addition & 1 deletion compiler_gym/bin/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ py_binary(
srcs = ["datasets.py"],
visibility = ["//visibility:public"],
deps = [
"//compiler_gym/datasets:dataset",
"//compiler_gym/datasets",
"//compiler_gym/envs",
"//compiler_gym/util",
"//compiler_gym/util/flags:env_from_flags",
Expand Down
9 changes: 0 additions & 9 deletions compiler_gym/datasets/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,3 @@ py_library(
"//compiler_gym/util",
],
)

py_library(
name = "dataset",
srcs = ["dataset.py"],
visibility = ["//compiler_gym:__subpackages__"],
deps = [
"//compiler_gym/util",
],
)
4 changes: 4 additions & 0 deletions compiler_gym/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
BenchmarkSource,
)
from compiler_gym.datasets.dataset import (
Dataset,
DatasetInitError,
LegacyDataset,
activate,
deactivate,
Expand All @@ -21,6 +23,8 @@
"Benchmark",
"BenchmarkInitError",
"BenchmarkSource",
"Dataset",
"DatasetInitError",
"deactivate",
"delete",
"LegacyDataset",
Expand Down
Loading

0 comments on commit 17fed3e

Please sign in to comment.