This repository was archived by the owner on Jul 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
tensor2tensor/data_generators Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ send along a pull request to add your dataset or model.
2323See [ our contribution
2424doc] ( CONTRIBUTING.md ) for details and our [ open
2525issues] ( 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
2931Here is a one-command version that installs tensor2tensor, downloads the data,
3032trains an English-German translation model, and lets you use it interactively:
Original file line number Diff line number Diff line change 2121from tensor2tensor .data_generators import algorithmic
2222from tensor2tensor .data_generators import algorithmic_math
2323from tensor2tensor .data_generators import audio
24- from tensor2tensor .data_generators import genetics
2524from tensor2tensor .data_generators import image
2625from tensor2tensor .data_generators import lm1b
2726from tensor2tensor .data_generators import ptb
2827from tensor2tensor .data_generators import snli
2928from tensor2tensor .data_generators import wiki
3029from tensor2tensor .data_generators import wmt
3130from 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
You can’t perform that action at this time.
0 commit comments