-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* RTD with Mock Imports * Issue with Deprecated Decorator Fixed * Changelog updated + YAPF cleaning * Update .readthedocs.yml * TF 1.6.0 Errors fixed * YAPF Cleaning * TL init if protected * Error fix - Test Documentation
- Loading branch information
Jonathan DEKHTIAR
authored
Aug 14, 2018
1 parent
490c44e
commit 0156da0
Showing
11 changed files
with
226 additions
and
101 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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
flake8-docstrings>=1.3,<1.4 | ||
matplotlib>=2.2,<2.3 | ||
sphinx>=1.7,<1.8 | ||
sphinx_rtd_theme>=0.4,<0.5 | ||
wrapt>=1.10,<1.11 |
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 |
---|---|---|
|
@@ -7,6 +7,20 @@ | |
import os | ||
from distutils.version import LooseVersion | ||
|
||
from tensorlayer.package_info import VERSION | ||
from tensorlayer.package_info import __shortversion__ | ||
from tensorlayer.package_info import __version__ | ||
|
||
from tensorlayer.package_info import __package_name__ | ||
from tensorlayer.package_info import __contact_names__ | ||
from tensorlayer.package_info import __contact_emails__ | ||
from tensorlayer.package_info import __homepage__ | ||
from tensorlayer.package_info import __repository_url__ | ||
from tensorlayer.package_info import __download_url__ | ||
from tensorlayer.package_info import __description__ | ||
from tensorlayer.package_info import __license__ | ||
from tensorlayer.package_info import __keywords__ | ||
|
||
if 'TENSORLAYER_PACKAGE_BUILDING' not in os.environ: | ||
|
||
try: | ||
|
@@ -18,16 +32,15 @@ | |
" - `pip install --upgrade tensorflow-gpu`" | ||
) | ||
|
||
if LooseVersion(tensorflow.__version__) < LooseVersion("1.6.0") and os.environ.get('READTHEDOCS', None) != 'True': | ||
if ("SPHINXBUILD" not in os.environ and "READTHEDOCS" not in os.environ and | ||
LooseVersion(tensorflow.__version__) < LooseVersion("1.6.0")): | ||
raise RuntimeError( | ||
"TensorLayer does not support Tensorflow version older than 1.6.0.\n" | ||
"Please update Tensorflow with:\n" | ||
" - `pip install --upgrade tensorflow`\n" | ||
" - `pip install --upgrade tensorflow-gpu`" | ||
) | ||
|
||
from tensorlayer.lazy_imports import LazyImport | ||
|
||
from tensorlayer import activation | ||
from tensorlayer import array_ops | ||
from tensorlayer import cost | ||
|
@@ -42,6 +55,8 @@ | |
from tensorlayer import optimizers | ||
from tensorlayer import rein | ||
|
||
from tensorlayer.lazy_imports import LazyImport | ||
|
||
# Lazy Imports | ||
db = LazyImport("tensorlayer.db") | ||
distributed = LazyImport("tensorlayer.distributed") | ||
|
@@ -60,19 +75,3 @@ | |
# global vars | ||
global_flag = {} | ||
global_dict = {} | ||
|
||
# Use the following formatting: (major, minor, patch, prerelease) | ||
VERSION = (1, 9, 1, "") | ||
__shortversion__ = '.'.join(map(str, VERSION[:3])) | ||
__version__ = '.'.join(map(str, VERSION[:3])) + "".join(VERSION[3:]) | ||
|
||
__package_name__ = 'tensorlayer' | ||
__contact_names__ = 'TensorLayer Contributors' | ||
__contact_emails__ = '[email protected]' | ||
__homepage__ = 'http://tensorlayer.readthedocs.io/en/latest/' | ||
__repository_url__ = 'https://github.com/tensorlayer/tensorlayer' | ||
__download_url__ = 'https://github.com/tensorlayer/tensorlayer' | ||
__description__ = 'Reinforcement Learning and Deep Learning Library for Researcher and Engineer.' | ||
__license__ = 'apache' | ||
__keywords__ = 'deep learning, machine learning, computer vision, nlp, ' | ||
__keywords__ += 'supervised learning, unsupervised learning, reinforcement learning, tensorflow' |
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
Oops, something went wrong.