Skip to content

Commit

Permalink
demo/scratch/wip: hparams demo with new APIs
Browse files Browse the repository at this point in the history
Test Plan:
With `tf-nightly-2.0-preview`:

```
$ bazel run //tensorboard/plugins/hparams:hparams_ml_demo
```

Tested in both Python 2 and Python 3. Has pretty graphs.

wchargin-branch: wip-hparams-api-demo
  • Loading branch information
wchargin committed Apr 5, 2019
1 parent 58df24b commit b7fdbd6
Show file tree
Hide file tree
Showing 3 changed files with 776 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tensorboard/plugins/hparams/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ py_library(
],
)

py_library(
name = "api",
srcs = ["api.py"],
srcs_version = "PY2AND3",
deps = [
":protos_all_py_pb2",
":summary",
"//tensorboard:expect_tensorflow_installed",
"@com_google_protobuf//:protobuf_python",
"@org_pythonhosted_six",
],
)

py_test(
name = "list_session_groups_test",
size = "small",
Expand Down Expand Up @@ -105,6 +118,20 @@ py_binary(
],
)

py_binary(
name = "hparams_ml_demo",
srcs = ["hparams_ml_demo.py"],
srcs_version = "PY2AND3",
deps = [
":api",
"//tensorboard:expect_absl_app_installed",
"//tensorboard:expect_absl_flags_installed",
"//tensorboard:expect_numpy_installed",
"//tensorboard:expect_tensorflow_installed",
"@org_pythonhosted_six",
],
)

py_binary(
name = "hparams_util",
srcs = ["hparams_util.py"],
Expand Down
Loading

0 comments on commit b7fdbd6

Please sign in to comment.