Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 2fd79ec

Browse files
author
Ryan Sepassi
committed
Update readme and make genetics module optional
PiperOrigin-RevId: 162570620
1 parent a7339cd commit 2fd79ec

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ send along a pull request to add your dataset or model.
2323
See [our contribution
2424
doc](CONTRIBUTING.md) for details and our [open
2525
issues](https://github.com/tensorflow/tensor2tensor/issues).
26-
And chat with us and other users on
27-
[Gitter](https://gitter.im/tensor2tensor/Lobby).
26+
You can chat with us and other users on
27+
[Gitter](https://gitter.im/tensor2tensor/Lobby) and please join our
28+
[Google Group](https://groups.google.com/forum/#!forum/tensor2tensor) to keep up
29+
with T2T announcements.
2830

2931
Here is a one-command version that installs tensor2tensor, downloads the data,
3032
trains an English-German translation model, and lets you use it interactively:

tensor2tensor/data_generators/all_problems.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,20 @@
2121
from tensor2tensor.data_generators import algorithmic
2222
from tensor2tensor.data_generators import algorithmic_math
2323
from tensor2tensor.data_generators import audio
24-
from tensor2tensor.data_generators import genetics
2524
from tensor2tensor.data_generators import image
2625
from tensor2tensor.data_generators import lm1b
2726
from tensor2tensor.data_generators import ptb
2827
from tensor2tensor.data_generators import snli
2928
from tensor2tensor.data_generators import wiki
3029
from tensor2tensor.data_generators import wmt
3130
from tensor2tensor.data_generators import wsj_parsing
31+
32+
# Problem modules that require optional dependencies
33+
# pylint: disable=g-import-not-at-top
34+
try:
35+
# Requires h5py
36+
from tensor2tensor.data_generators import genetics
37+
except ImportError:
38+
pass
39+
# pylint: enable=g-import-not-at-top
3240
# pylint: enable=unused-import

0 commit comments

Comments
 (0)