Skip to content

Commit 867a5ef

Browse files
author
Jonathan DEKHTIAR
authored
Release 1.8.6rc0 (#660)
* Release 1.8.6rc0 * Update CHANGELOG.md * Typo Fix * Changelog Updated * tl_logging more readable * Typo Fixed * https enforced for badges * RTD badges pointing to Latest Commit * Decorators API Refactored * extra_requires `all`, `all_cpu` and `all_gpu` added * Error fix * YAPF Formating Correction * Test for private method decorator added * Test Logging Verbosity Fixed to Debug when runned individually * YAPF corrections applied * Changelog Added * Changelog updated * PR number changed * Changelog updated * Update .travis.yml * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CHANGELOG.md
1 parent 1ab2f1d commit 867a5ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+256
-77
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ tensorlayer/__pycache__
1818

1919
update_tl.bat
2020
update_tl.py
21+
.vscode/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ env:
4646

4747
install:
4848
- pip install tensorflow==$_TF_VERSION
49-
- pip install -e .[db,dev,doc,extra,test]
49+
- pip install -e .[all]
5050

5151
script:
5252
# units test

CHANGELOG.md

Lines changed: 91 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,15 @@ To release a new version, please update the changelog as followed:
7676
- [Changelog Probot](https://github.com/mikz/probot-changelog) Configuration added (by @DEKHTIARJonathan in #637)
7777
- Travis Builds now handling a matrix of TF Version from TF==1.6.0 to TF==1.8.0 (by @DEKHTIARJonathan in #644)
7878
- CircleCI added to build and upload Docker Containers for each PR merged and tag release (by @DEKHTIARJonathan in #648)
79-
- Docker:
79+
- Decorator:
80+
- `tl.decorators` API created including `deprecated_alias` and `private_method` (by @DEKHTIARJonathan in #660)
81+
- Docker:
8082
- Containers for each release and for each PR merged on master built (by @DEKHTIARJonathan in #648)
81-
- Containers built in the following configurations: py2+cpu, py2+gpu, py3+cpu, and py3+gpu (by @DEKHTIARJonathan in #648)
83+
- Containers built in the following configurations (by @DEKHTIARJonathan in #648):
84+
- py2 + cpu
85+
- py2 + gpu
86+
- py3 + cpu
87+
- py3 + gpu
8288
- Documentation:
8389
- Release semantic version added on index page (by @DEKHTIARJonathan in #633)
8490
- Optimizers page added (by @DEKHTIARJonathan in #636)
@@ -87,12 +93,15 @@ To release a new version, please update the changelog as followed:
8793
- ElementwiseLambdaLayer added to use custom function to connect multiple layer inputs (by @One-sixth in #579)
8894
- Optimizer:
8995
- AMSGrad Optimizer added based on `On the Convergence of Adam and Beyond (ICLR 2018)` (by @DEKHTIARJonathan in #636)
96+
- Setup:
97+
- Creation of installation flaggs `all`, `all_cpu`, and `all_gpu` (by @DEKHTIARJonathan in #660)
9098
- Test:
9199
- `test_utils_predict.py` added to reproduce and fix issue #288 (by @2wins in #566)
92100
- `Layer_DeformableConvolution_Test` added to reproduce issue #572 with deformable convolution (by @DEKHTIARJonathan in #573)
93101
- `Array_Op_Alphas_Test` and `Array_Op_Alphas_Like_Test` added to test `tensorlayer/array_ops.py` file (by @DEKHTIARJonathan in #580)
94102
- `test_optimizer_amsgrad.py` added to test `AMSGrad` optimizer (by @DEKHTIARJonathan in #636)
95103
- `test_logging.py` added to insure robustness of the logging API (by @DEKHTIARJonathan in #645)
104+
- `test_decorators.py` added (by @DEKHTIARJonathan in #660)
96105
- Tutorials:
97106
- `tutorial_tfslim` has been introduced to show how to use `SlimNetsLayer` (by @2wins in #560).
98107

@@ -111,6 +120,7 @@ To release a new version, please update the changelog as followed:
111120
- README.md and other markdown files have been refactored and cleaned. (by @zsdonghao @DEKHTIARJonathan @luomai in #639)
112121
- Ternary Convolution Layer added in unittest (by @DEKHTIARJonathan in #658)
113122
- Convolution Layers unittests have been cleaned & refactored (by @DEKHTIARJonathan in #658)
123+
- All the tests are now using a DEBUG level verbosity when run individualy (by @DEKHTIARJonathan in #660)
114124

115125
### Deprecated
116126

@@ -137,8 +147,84 @@ To release a new version, please update the changelog as followed:
137147
- Update scikit-image from 0.13.1 to 0.14.0 (by @DEKHTIARJonathan and @pyup-bot in #656)
138148

139149
### Contributors
140-
@lgarithm @DEKHTIARJonathan @2wins @One-sixth @zsdonghao
150+
@lgarithm @DEKHTIARJonathan @2wins @One-sixth @zsdonghao @luomai
141151

152+
## [1.8.6] - 2018-05-30
153+
154+
### Added
155+
- API:
156+
- `tl.alphas` and `tl.alphas_like` added following the tf.ones/zeros and tf.zeros_like/ones_like (by @DEKHTIARJonathan in #580)
157+
- CI Tool:
158+
- [Stale Probot](https://github.com/probot/stale) added to clean stale issues (by @DEKHTIARJonathan in #573)
159+
- [Changelog Probot](https://github.com/mikz/probot-changelog) Configuration added (by @DEKHTIARJonathan in #637)
160+
- Travis Builds now handling a matrix of TF Version from TF==1.6.0 to TF==1.8.0 (by @DEKHTIARJonathan in #644)
161+
- CircleCI added to build and upload Docker Containers for each PR merged and tag release (by @DEKHTIARJonathan in #648)
162+
- Decorator:
163+
- `tl.decorators` API created including `deprecated_alias` and `private_method` (by @DEKHTIARJonathan in #660)
164+
- Docker:
165+
- Containers for each release and for each PR merged on master built (by @DEKHTIARJonathan in #648)
166+
- Containers built in the following configurations (by @DEKHTIARJonathan in #648):
167+
- py2 + cpu
168+
- py2 + gpu
169+
- py3 + cpu
170+
- py3 + gpu
171+
- Documentation:
172+
- Release semantic version added on index page (by @DEKHTIARJonathan in #633)
173+
- Optimizers page added (by @DEKHTIARJonathan in #636)
174+
- `AMSGrad` added on Optimizers page added (by @DEKHTIARJonathan in #636)
175+
- Layer:
176+
- ElementwiseLambdaLayer added to use custom function to connect multiple layer inputs (by @One-sixth in #579)
177+
- Optimizer:
178+
- AMSGrad Optimizer added based on `On the Convergence of Adam and Beyond (ICLR 2018)` (by @DEKHTIARJonathan in #636)
179+
- Setup:
180+
- Creation of installation flaggs `all`, `all_cpu`, and `all_gpu` (by @DEKHTIARJonathan in #660)
181+
- Test:
182+
- `test_utils_predict.py` added to reproduce and fix issue #288 (by @2wins in #566)
183+
- `Layer_DeformableConvolution_Test` added to reproduce issue #572 with deformable convolution (by @DEKHTIARJonathan in #573)
184+
- `Array_Op_Alphas_Test` and `Array_Op_Alphas_Like_Test` added to test `tensorlayer/array_ops.py` file (by @DEKHTIARJonathan in #580)
185+
- `test_optimizer_amsgrad.py` added to test `AMSGrad` optimizer (by @DEKHTIARJonathan in #636)
186+
- `test_logging.py` added to insure robustness of the logging API (by @DEKHTIARJonathan in #645)
187+
- `test_decorators.py` added (by @DEKHTIARJonathan in #660)
188+
- Tutorials:
189+
- `tutorial_tfslim` has been introduced to show how to use `SlimNetsLayer` (by @2wins in #560).
190+
191+
### Changed
192+
- Tensorflow CPU & GPU dependencies moved to separated requirement files in order to allow PyUP.io to parse them (by @DEKHTIARJonathan in #573)
193+
- The document of LambdaLayer for linking it with ElementwiseLambdaLayer (by @zsdonghao in #587)
194+
- RTD links point to stable documentation instead of latest used for development (by @DEKHTIARJonathan in #633)
195+
- TF Version older than 1.6.0 are officially unsupported and raises an exception (by @DEKHTIARJonathan in #644)
196+
- Readme Badges Updated with Support Python and Tensorflow Versions (by @DEKHTIARJonathan in #644)
197+
- TL logging API has been consistent with TF logging API and thread-safe (by @DEKHTIARJonathan in #645)
198+
- Relative Imports changed for absolute imports (by @DEKHTIARJonathan in #657)
199+
- `tl.files` refactored into a directory with numerous files (by @DEKHTIARJonathan in #657)
200+
- `tl.files.voc_dataset` fixed because of original Pascal VOC website was down (by @DEKHTIARJonathan in #657)
201+
- extra requirements hidden inside the library added in the project requirements (by @DEKHTIARJonathan in #657)
202+
- requirements files refactored in `requirements/` directory (by @DEKHTIARJonathan in #657)
203+
- README.md and other markdown files have been refactored and cleaned. (by @zsdonghao @DEKHTIARJonathan @luomai in #639)
204+
- Ternary Convolution Layer added in unittest (by @DEKHTIARJonathan in #658)
205+
- Convolution Layers unittests have been cleaned & refactored (by @DEKHTIARJonathan in #658)
206+
- All the tests are now using a DEBUG level verbosity when run individualy (by @DEKHTIARJonathan in #660)
207+
208+
### Fixed
209+
- Issue #498 - Deprecation Warning Fix in `tl.layers.RNNLayer` with `inspect` (by @DEKHTIARJonathan in #574)
210+
- Issue #498 - Deprecation Warning Fix in `tl.files` with truth value of an empty array is ambiguous (by @DEKHTIARJonathan in #575)
211+
- Issue #565 related to `tl.utils.predict` fixed - `np.hstack` problem in which the results for multiple batches are stacked along `axis=1` (by @2wins in #566)
212+
- Issue #572 with `tl.layers.DeformableConv2d` fixed (by @DEKHTIARJonathan in #573)
213+
- Typo of the document of ElementwiseLambdaLayer (by @zsdonghao in #588)
214+
- Error in `tl.layers.TernaryConv2d` fixed - self.inputs not defined (by @DEKHTIARJonathan in #658)
215+
- Deprecation warning fixed in `tl.layers.binary._compute_threshold()` (by @DEKHTIARJonathan in #658)
216+
- All references to `tf.logging` replaced by `tl.logging` (by @DEKHTIARJonathan in #661)
217+
- Tutorial:
218+
- `tutorial_word2vec_basic.py` saving issue #476 fixed (by @DEKHTIARJonathan in #635)
219+
- All tutorials tested and errors have been fixed (by @DEKHTIARJonathan in #635)
220+
221+
### Dependencies Update
222+
- Update pytest from 3.5.1 to 3.6.0 (by @DEKHTIARJonathan and @pyup-bot in #647)
223+
- Update progressbar2 from 3.37.1 to 3.38.0 (by @DEKHTIARJonathan and @pyup-bot in #651)
224+
- Update scikit-image from 0.13.1 to 0.14.0 (by @DEKHTIARJonathan and @pyup-bot in #656)
225+
226+
### Contributors
227+
@lgarithm @DEKHTIARJonathan @2wins @One-sixth @zsdonghao @luomai
142228

143229
## [1.8.5] - 2018-05-09
144230

@@ -179,5 +265,6 @@ To release a new version, please update the changelog as followed:
179265
### Contributors
180266
@zsdonghao @luomai @DEKHTIARJonathan
181267

182-
[Unreleased]: https://github.com/tensorlayer/tensorlayer/compare/1.8.5...master
268+
[Unreleased]: https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc0...master
269+
[1.8.6]: https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc0...1.8.5
183270
[1.8.5]: https://github.com/tensorlayer/tensorlayer/compare/1.8.4...1.8.5

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,20 @@ source venv/bin/activate
4141
# Windows:
4242
venv\Scripts\activate.bat
4343

44+
# ============= IF TENSORFLOW IS ALREADY INSTALLED ============= #
45+
pip install -e .[all]
46+
47+
# ============= IF TENSORFLOW IS NOT ALREADY INSTALLED ============= #
48+
4449
# for a machine **without** an NVIDIA GPU
4550
pip install -e .[tf_cpu,db,dev,doc,extra,test]
51+
# or
52+
pip install -e .[all_cpu]
4653

4754
# for a machine **with** an NVIDIA GPU
4855
pip install -e .[tf_gpu,db,dev,doc,extra,test]
56+
# or
57+
pip install -e .[all_gpu]
4958
```
5059

5160
Launching the unittest:

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
[![Build Status](https://img.shields.io/travis/tensorlayer/tensorlayer.svg?label=Travis&branch=master)](https://travis-ci.org/tensorlayer/tensorlayer)
88
[![PyPI version](https://badge.fury.io/py/tensorlayer.svg)](https://pypi.org/project/tensorlayer/)
9-
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/tensorlayer/tensorlayer/latest.svg)](https://github.com/tensorlayer/tensorlayer/compare/1.8.5...master)
9+
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/tensorlayer/tensorlayer/latest.svg)](https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc0...master)
1010
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tensorlayer.svg)](https://pypi.org/project/tensorlayer/)
1111
[![Supported TF Version](https://img.shields.io/badge/tensorflow-1.6.0+-blue.svg)](https://github.com/tensorflow/tensorflow/releases)
1212
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ca2a29ddcf7445588beff50bee5406d9)](https://app.codacy.com/app/tensorlayer/tensorlayer)
1313

1414
[![CircleCI](https://img.shields.io/circleci/project/github/tensorlayer/tensorlayer.svg?label=Docker%20Build&branch=master)](https://circleci.com/gh/tensorlayer/tensorlayer/tree/master)
1515
[![Docker Pulls](https://img.shields.io/docker/pulls/tensorlayer/tensorlayer.svg?maxAge=604800)](https://hub.docker.com/r/tensorlayer/tensorlayer/)
16-
[![Documentation Status](https://img.shields.io/readthedocs/tensorlayer/stable.svg?label=ReadTheDocs)](https://tensorlayer.readthedocs.io/)
16+
[![Documentation Status](https://img.shields.io/readthedocs/tensorlayer/latest.svg?label=ReadTheDocs-EN)](https://tensorlayer.readthedocs.io/)
17+
[![Documentation Status](https://img.shields.io/readthedocs/tensorlayercn/latest.svg?label=ReadTheDocs-CN)](https://tensorlayercn.readthedocs.io/)
1718
[![PyUP Updates](https://pyup.io/repos/github/tensorlayer/tensorlayer/shield.svg)](https://pyup.io/repos/github/tensorlayer/tensorlayer/)
1819
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tensorlayer/Lobby)
1920

@@ -28,9 +29,9 @@
2829
<br/>
2930

3031
[![Mentioned in Awesome TensorLayer](https://awesome.re/mentioned-badge.svg)](https://github.com/tensorlayer/awesome-tensorlayer)
31-
[![English Documentation](http://img.shields.io/badge/documentation-enlish-blue.svg)](https://tensorlayer.readthedocs.io/)
32-
[![Chinese Documentation](http://img.shields.io/badge/documentation-中文-blue.svg)](https://tensorlayercn.readthedocs.io/)
33-
[![Chinese Book](http://img.shields.io/badge/book-中文-blue.svg)](http://www.broadview.com.cn/book/5059/)
32+
[![English Documentation](https://img.shields.io/badge/documentation-english-blue.svg)](https://tensorlayer.readthedocs.io/)
33+
[![Chinese Documentation](https://img.shields.io/badge/documentation-中文-blue.svg)](https://tensorlayercn.readthedocs.io/)
34+
[![Chinese Book](https://img.shields.io/badge/book-中文-blue.svg)](http://www.broadview.com.cn/book/5059/)
3435

3536
TensorLayer is a deep learning and reinforcement learning library on top of [TensorFlow](https://www.tensorflow.org). It provides rich neural layers and utility functions to help researchers and engineers build real-world AI applications. TensorLayer is awarded the 2017 Best Open Source Software by the prestigious [ACM Multimedia Society](http://www.acmmm.org/2017/mm-2017-awardees/).
3637

@@ -42,7 +43,7 @@ As TensorFlow users, we have been looking for a library that can serve for vario
4243
phases. This library is easy for beginners by providing rich neural network implementations,
4344
examples and tutorials. Later, its APIs shall naturally allow users to leverage the powerful
4445
features of TensorFlow, exhibiting best performance in addressing real-world problems. In the
45-
end, the extra abstraction shall not compromise TensorFlow performance, and thus suit for
46+
end, the extra abstraction shall not compromise TensorFlow performance, and thus suit for
4647
production deployment. TensorLayer is a novel library that aims to satisfy these requirements.
4748

4849
It has three key features:
@@ -66,15 +67,15 @@ on a Titan X Pascal GPU.
6667

6768
Similar to TensorLayer, Keras and TFLearn are also popular TensorFlow wrapper libraries.
6869
These libraries are comfortable to start with. They provide high-level abstractions;
69-
but mask the underlying engine from users. It is thus hard to customize model behaviors
70-
and touch the essential features of TensorFlow.
70+
but mask the underlying engine from users. It is thus hard to customize model behaviors
71+
and touch the essential features of TensorFlow.
7172

7273
Without compromise in simplicity, TensorLayer APIs are generally more flexible and transparent.
7374
Users often find it easy to start with the examples and tutorials of TensorLayer, and then dive
7475
into the TensorFlow low-level APIs only if need. TensorLayer does not create library lock-in. Users can easily import models from Keras, TFSlim and TFLearn into a TensorLayer environment.
7576

7677
TensorLayer has a fast growing usage in academic and industry organizations. It is used by researchers from
77-
Imperial College London, Carnegie Mellon University, Stanford University,
78+
Imperial College London, Carnegie Mellon University, Stanford University,
7879
University of Technology of Compiegne (UTC), Tsinghua University, UCLA,
7980
and etc., as well as engineers from Google, Microsoft, Alibaba, Tencent, Xiaomi, Penguins Innovate, Bloomberg and many others.
8081

README.rst

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@
55
<img src="img/tl_transparent_logo.png" width="50%" height="30%"/>
66
</div>
77
</a>
8-
8+
99
.. image:: https://img.shields.io/travis/tensorlayer/tensorlayer.svg?label=Travis&branch=master
1010
:target: https://travis-ci.org/tensorlayer/tensorlayer
11-
11+
1212
.. image:: https://badge.fury.io/py/tensorlayer.svg
1313
:target: https://pypi.org/project/tensorlayer/
14-
14+
1515
.. image:: https://img.shields.io/github/commits-since/tensorlayer/tensorlayer/latest.svg
16-
:target: https://github.com/tensorlayer/tensorlayer/compare/1.8.5...master
17-
16+
:target: https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc0...master
17+
1818
.. image:: https://img.shields.io/pypi/pyversions/tensorlayer.svg
1919
:target: https://pypi.org/project/tensorlayer/
20-
20+
2121
.. image:: https://img.shields.io/badge/tensorflow-1.6.0+-blue.svg
2222
:target: https://github.com/tensorflow/tensorflow/releases
23-
23+
2424
.. image:: https://api.codacy.com/project/badge/Grade/ca2a29ddcf7445588beff50bee5406d9
25-
:target: https://app.codacy.com/app/tensorlayer/tensorlayer
25+
:target: https://app.codacy.com/app/tensorlayer/tensorlayer
2626

2727
.. raw:: html
2828

@@ -36,9 +36,12 @@
3636
.. image:: https://img.shields.io/docker/pulls/tensorlayer/tensorlayer.svg?maxAge=604800
3737
:target: https://hub.docker.com/r/tensorlayer/tensorlayer/
3838

39-
.. image:: https://img.shields.io/readthedocs/tensorlayer/stable.svg?label=ReadTheDocs
39+
.. image:: https://img.shields.io/readthedocs/tensorlayer/latest.svg?label=ReadTheDocs-EN
4040
:target: https://tensorlayer.readthedocs.io/
4141

42+
.. image:: https://img.shields.io/readthedocs/tensorlayercn/latest.svg?label=ReadTheDocs-CN
43+
:target: https://tensorlayercn.readthedocs.io/
44+
4245
.. image:: https://pyup.io/repos/github/tensorlayer/tensorlayer/shield.svg
4346
:target: https://pyup.io/repos/github/tensorlayer/tensorlayer/
4447

@@ -61,14 +64,14 @@
6164

6265
.. image:: https://awesome.re/mentioned-badge.svg
6366
:target: https://github.com/tensorlayer/awesome-tensorlayer
64-
65-
.. image:: http://img.shields.io/badge/documentation-enlish-blue.svg
67+
68+
.. image:: https://img.shields.io/badge/documentation-english-blue.svg
6669
:target: https://tensorlayer.readthedocs.io/
67-
68-
.. image:: http://img.shields.io/badge/documentation-中文-blue.svg
70+
71+
.. image:: https://img.shields.io/badge/documentation-中文-blue.svg
6972
:target: https://tensorlayercn.readthedocs.io/
70-
71-
.. image:: http://img.shields.io/badge/book-中文-blue.svg
73+
74+
.. image:: https://img.shields.io/badge/book-中文-blue.svg
7275
:target: http://www.broadview.com.cn/book/5059/
7376

7477
TensorLayer is a deep learning and reinforcement learning library on top

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def req_file(filename, folder="requirements"):
6868
'test': req_file("requirements_test.txt")
6969
}
7070

71+
extras_require['all'] = sum([extras_require.get(key) for key in ['db', 'dev', 'doc', 'extra', 'test']], list())
72+
extras_require['all_cpu'] = sum([extras_require.get(key) for key in ['all', 'tf_cpu']], list())
73+
extras_require['all_gpu'] = sum([extras_require.get(key) for key in ['db', 'tf_gpu']], list())
74+
7175
# Readthedocs requires TF 1.5.0 to build properly
7276
if os.environ.get('READTHEDOCS', None) == 'True':
7377
install_requires.append("tensorflow==1.5.0")

tensorlayer/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from . import activation
2828
from . import array_ops
2929
from . import cost
30+
from . import decorators
3031
from . import distributed
3132
from . import files
3233
from . import iterate
@@ -52,7 +53,7 @@
5253
global_dict = {}
5354

5455
# Use the following formating: (major, minor, patch, prerelease)
55-
VERSION = (1, 8, 5)
56+
VERSION = (1, 8, 6, "rc0")
5657
__shortversion__ = '.'.join(map(str, VERSION[:3]))
5758
__version__ = '.'.join(map(str, VERSION[:3])) + "".join(VERSION[3:])
5859

tensorlayer/decorators/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
TensorLayer provides rich layer implementations trailed for
3+
various benchmarks and domain-specific problems. In addition, we also
4+
support transparent access to native TensorFlow parameters.
5+
For example, we provide not only layers for local response normalization, but also
6+
layers that allow user to apply ``tf.nn.lrn`` on ``network.outputs``.
7+
More functions can be found in `TensorFlow API <https://www.tensorflow.org/versions/master/api_docs/index.html>`__.
8+
"""
9+
10+
from .deprecation import deprecated_alias
11+
from .private_method import private_method
12+
13+
__all__ = ['deprecated_alias', 'private_method']

tensorlayer/deprecation.py renamed to tensorlayer/decorators/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import functools
55
import warnings
66

7-
from . import tl_logging as logging
7+
from tensorlayer import tl_logging as logging
88

99

1010
def deprecated_alias(end_support_version, **aliases):

0 commit comments

Comments
 (0)