Skip to content

Commit 4e61852

Browse files
committed
Merge branch 'Release' of github.com:Laicheng0830/tensorlayer into Release
2 parents b800100 + 24dcda6 commit 4e61852

30 files changed

+437
-146
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ jobs:
44

55
###################################################################################
66
# TEST BUILDS with TensorLayer installed from Source - NOT PUSHED TO DOCKER HUB #
7+
78
###################################################################################
89

910
test_sources_py2_cpu:

.codacy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
engines:
44
bandit:
5-
enabled: false # FIXME: make it work
5+
enabled: false # FIXME: make it works
66
exclude_paths:
77
- scripts/*
88
- setup.py

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,36 @@ It contains numerous bug fixes.
122122
- @Gyx-One (#1089)
123123
- @Laicheng0830 (#1090)
124124

125+
## [2.2.2] - 2020-04-26
126+
127+
TensorLayer 2.2.2 is a maintenance release.
128+
129+
### Added
130+
131+
- Reinforcement learning(#1065)
132+
- Mish activation(#1068)
133+
134+
### Changed
135+
136+
### Dependencies Update
137+
138+
### Deprecated
139+
140+
### Fixed
141+
142+
- Fix README.
143+
- Fix package info.
144+
145+
### Removed
146+
147+
### Security
148+
149+
### Contributors
150+
151+
- @zsdonghao
152+
- @quantumiracle(1065)
153+
- @Laicheng0830(#1068)
154+
125155
## [2.2.1] - 2020-01-14
126156

127157
TensorLayer 2.2.1 is a maintenance release.

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
[![Documentation Status](https://readthedocs.org/projects/tensorlayer/badge/)](https://tensorlayer.readthedocs.io/)
1313
[![Build Status](https://travis-ci.org/tensorlayer/tensorlayer.svg?branch=master)](https://travis-ci.org/tensorlayer/tensorlayer)
1414
[![Downloads](http://pepy.tech/badge/tensorlayer)](http://pepy.tech/project/tensorlayer)
15+
[![Downloads](https://pepy.tech/badge/tensorlayer/week)](https://pepy.tech/project/tensorlayer/week)
1516
[![Docker Pulls](https://img.shields.io/docker/pulls/tensorlayer/tensorlayer.svg)](https://hub.docker.com/r/tensorlayer/tensorlayer/)
1617
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d6b118784e25435498e7310745adb848)](https://www.codacy.com/app/tensorlayer/tensorlayer)
1718

@@ -20,19 +21,17 @@
2021
<!--- [![Documentation Status](https://readthedocs.org/projects/tensorlayercn/badge/)](https://tensorlayercn.readthedocs.io/)
2122
<!--- [![PyUP Updates](https://pyup.io/repos/github/tensorlayer/tensorlayer/shield.svg)](https://pyup.io/repos/github/tensorlayer/tensorlayer/) --->
2223

23-
[TensorLayer](https://tensorlayer.readthedocs.io) is a novel TensorFlow-based deep learning and reinforcement learning library designed for researchers and engineers. It provides an extensive collection of customizable neural layers to build complex AI models. TensorLayer is awarded the 2017 Best Open Source Software by the [ACM Multimedia Society](https://twitter.com/ImperialDSI/status/923928895325442049).
24-
TensorLayer can also be found at [iHub](https://code.ihub.org.cn/projects/328) and [Gitee](https://gitee.com/organizations/TensorLayer).
24+
[TensorLayer](https://tensorlayer.readthedocs.io) is a novel TensorFlow-based deep learning and reinforcement learning library designed for researchers and engineers. It provides an extensive collection of customizable neural layers to build advanced AI models quickly, based on this, the community open-sourced mass [tutorials](https://github.com/tensorlayer/tensorlayer/blob/master/examples/reinforcement_learning/README.md) and [applications](https://github.com/tensorlayer). TensorLayer is awarded the 2017 Best Open Source Software by the [ACM Multimedia Society](https://twitter.com/ImperialDSI/status/923928895325442049).
25+
This project can also be found at [iHub](https://code.ihub.org.cn/projects/328) and [Gitee](https://gitee.com/organizations/TensorLayer).
2526

2627
# News
2728

28-
🔥 Reinforcement Learning Model Zoo: [Low-level APIs for Research](https://github.com/tensorlayer/tensorlayer/tree/master/examples/reinforcement_learning) and [High-level APIs for Production](https://github.com/tensorlayer/RLzoo)
29+
🔥 Reinforcement Learning Zoo: [Low-level APIs](https://github.com/tensorlayer/tensorlayer/tree/master/examples/reinforcement_learning) for professional usage, [High-level APIs](https://github.com/tensorlayer/RLzoo) for simple usage, and a corresponding [Springer textbook](http://springer.com/gp/book/9789811540943)
2930

3031
🔥 [Sipeed Maxi-EMC](https://github.com/sipeed/Maix-EMC): Run TensorLayer models on the **low-cost AI chip** (e.g., K210) (Alpha Version)
3132

3233
<!-- 🔥 [NNoM](https://github.com/majianjia/nnom): Run TensorLayer quantized models on the **MCU** (e.g., STM32) (Coming Soon) -->
3334

34-
🔥 [Free GPU and storage resources](https://github.com/fangde/FreeGPU): TensorLayer users can access to free GPU and storage resources donated by SurgicalAI. Thank you SurgicalAI!
35-
3635
# Design Features
3736

3837
TensorLayer is a new deep learning library designed with simplicity, flexibility and high-performance in mind.
@@ -145,7 +144,7 @@ The following table shows the training speeds of [VGG16](http://www.robots.ox.ac
145144
| Mode | Lib | Data Format | Max GPU Memory Usage(MB) |Max CPU Memory Usage(MB) | Avg CPU Memory Usage(MB) | Runtime (sec) |
146145
| :-------: | :-------------: | :-----------: | :-----------------: | :-----------------: | :-----------------: | :-----------: |
147146
| AutoGraph | TensorFlow 2.0 | channel last | 11833 | 2161 | 2136 | 74 |
148-
| | Tensorlayer 2.0 | channel last | 11833 | 2187 | 2169 | 76 |
147+
| | TensorLayer 2.0 | channel last | 11833 | 2187 | 2169 | 76 |
149148
| Graph | Keras | channel last | 8677 | 2580 | 2576 | 101 |
150149
| Eager | TensorFlow 2.0 | channel last | 8723 | 2052 | 2024 | 97 |
151150
| | TensorLayer 2.0 | channel last | 8723 | 2010 | 2007 | 95 |

README.rst

Lines changed: 14 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -17,52 +17,20 @@ to build real-world AI applications. TensorLayer is awarded the 2017
1717
Best Open Source Software by the `ACM Multimedia
1818
Society <http://www.acmmm.org/2017/mm-2017-awardees/>`__.
1919

20-
Why another deep learning library: TensorLayer
21-
==============================================
22-
23-
As deep learning practitioners, we have been looking for a library that
24-
can address various development purposes. This library is easy to adopt
25-
by providing diverse examples, tutorials and pre-trained models. Also,
26-
it allow users to easily fine-tune TensorFlow; while being suitable for
27-
production deployment. TensorLayer aims to satisfy all these purposes.
28-
It has three key features:
29-
30-
- **Simplicity** : TensorLayer lifts the low-level dataflow interface
31-
of TensorFlow to *high-level* layers / models. It is very easy to
32-
learn through the rich `example
33-
codes <https://github.com/tensorlayer/awesome-tensorlayer>`__
34-
contributed by a wide community.
35-
- **Flexibility** : TensorLayer APIs are transparent: it does not
36-
mask TensorFlow from users; but leaving massive hooks that help
37-
*low-level tuning* and *deep customization*.
38-
- **Zero-cost Abstraction** : TensorLayer can achieve the *full
39-
power* of TensorFlow. The following table shows the training speeds
40-
of classic models using TensorLayer and native TensorFlow on a Titan
41-
X Pascal GPU.
42-
43-
+---------------+-----------------+-----------------+-----------------+
44-
| | CIFAR-10 | PTB LSTM | Word2Vec |
45-
+===============+=================+=================+=================+
46-
| TensorLayer | 2528 images/s | 18063 words/s | 58167 words/s |
47-
+---------------+-----------------+-----------------+-----------------+
48-
| TensorFlow | 2530 images/s | 18075 words/s | 58181 words/s |
49-
+---------------+-----------------+-----------------+-----------------+
50-
51-
TensorLayer stands at a unique spot in the library landscape. Other
52-
wrapper libraries like Keras and TFLearn also provide high-level
53-
abstractions. They, however, often hide the underlying engine from
54-
users, which make them hard to customize and fine-tune. On the contrary,
55-
TensorLayer APIs are generally flexible and transparent. Users often
56-
find it easy to start with the examples and tutorials, and then dive
57-
into TensorFlow seamlessly. In addition, TensorLayer does not create
58-
library lock-in through native supports for importing components from
59-
Keras, TFSlim and TFLearn.
60-
61-
TensorLayer has a fast growing usage among top researchers and
62-
engineers, from universities like Imperial College London, UC Berkeley,
63-
Carnegie Mellon University, Stanford University, and University of
64-
Technology of Compiegne (UTC), and companies like Google, Microsoft,
65-
Alibaba, Tencent, Xiaomi, and Bloomberg.
20+
Design Features
21+
=================
22+
23+
TensorLayer is a new deep learning library designed with simplicity, flexibility and high-performance in mind.
24+
25+
- **Simplicity** : TensorLayer has a high-level layer/model abstraction which is effortless to learn. You can learn how deep learning can benefit your AI tasks in minutes through the massive [examples](https://github.com/tensorlayer/awesome-tensorlayer).
26+
- **Flexibility** : TensorLayer APIs are transparent and flexible, inspired by the emerging PyTorch library. Compared to the Keras abstraction, TensorLayer makes it much easier to build and train complex AI models.
27+
- **Zero-cost Abstraction** : Though simple to use, TensorLayer does not require you to make any compromise in the performance of TensorFlow (Check the following benchmark section for more details).
28+
29+
TensorLayer stands at a unique spot in the TensorFlow wrappers. Other wrappers like Keras and TFLearn
30+
hide many powerful features of TensorFlow and provide little support for writing custom AI models. Inspired by PyTorch, TensorLayer APIs are simple, flexible and Pythonic,
31+
making it easy to learn while being flexible enough to cope with complex AI tasks.
32+
TensorLayer has a fast-growing community. It has been used by researchers and engineers all over the world, including those from Peking University,
33+
Imperial College London, UC Berkeley, Carnegie Mellon University, Stanford University, and companies like Google, Microsoft, Alibaba, Tencent, Xiaomi, and Bloomberg.
6634

6735
Install
6836
=======

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Welcome to TensorLayer
99

1010
**Documentation Version:** |release|
1111

12-
**Jun 2019** `Deep Reinforcement Learning Model ZOO Release !! <https://github.com/tensorlayer/tensorlayer/tree/master/examples/reinforcement_learning>`__.
12+
**Jun 2020** `Deep Reinforcement Learning Book Is Coming <http://deepreinforcementlearningbook.org>`__.
1313

1414
**Good News:** We won the **Best Open Source Software Award** `@ACM Multimedia (MM) 2017 <http://www.acmmm.org/2017/mm-2017-awardees/>`_.
1515

docs/modules/activation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ For more complex activation, TensorFlow API will be required.
3535
sign
3636
hard_tanh
3737
pixel_wise_softmax
38+
mish
3839

3940
Ramp
4041
------
@@ -68,6 +69,10 @@ Pixel-wise softmax
6869
--------------------
6970
.. autofunction:: pixel_wise_softmax
7071

72+
mish
73+
---------
74+
.. autofunction:: mish
75+
7176
Parametric activation
7277
------------------------------
7378
See ``tensorlayer.layers``.

docs/modules/layers.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Layer list
1313
.. autosummary::
1414

1515
Layer
16+
17+
ModelLayer
18+
LayerList
1619

1720
Input
1821

@@ -131,8 +134,18 @@ Layer list
131134
Base Layer
132135
-----------
133136

137+
Base Layer
138+
^^^^^^^^^^^^^^^^
134139
.. autoclass:: Layer
135140

141+
Model Layer
142+
^^^^^^^^^^^^^^^^
143+
.. autoclass:: ModelLayer
144+
145+
Layer List
146+
^^^^^^^^^^^^^^^^
147+
.. autoclass:: LayerList
148+
136149
.. -----------------------------------------------------------
137150
.. Input Layer
138151
.. -----------------------------------------------------------

docs/modules/rein.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
API - Reinforcement Learning
22
==============================
33

4-
Reinforcement Learning.
4+
We provide two reinforcement learning libraries:
5+
6+
- `RL-tutorial <https://github.com/tensorlayer/tensorlayer/tree/master/examples/reinforcement_learning>`__ for professional users with low-level APIs.
7+
- `RLzoo <https://rlzoo.readthedocs.io/en/latest/>`__ for simple usage with high-level APIs.
58

69
.. automodule:: tensorlayer.rein
710

docs/user/contributing.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ For TensorLayer 1.x, it was actively developed and maintained by the following p
4040
- **Hao Dong** (`@zsdonghao <https://github.com/zsdonghao>`_) - `<https://zsdonghao.github.io>`_
4141
- **Jonathan Dekhtiar** (`@DEKHTIARJonathan <https://github.com/DEKHTIARJonathan>`_) - `<https://www.jonathandekhtiar.eu>`_
4242
- **Luo Mai** (`@luomai <https://github.com/luomai>`_) - `<http://www.doc.ic.ac.uk/~lm111/>`_
43+
- **Pan Wang** (`@FerociousPanda <http://github.com/FerociousPanda>`_) - `<http://github.com/FerociousPanda>`_ (UI)
4344
- **Simiao Yu** (`@nebulaV <https://github.com/nebulaV>`_) - `<https://nebulav.github.io>`_
4445

46+
4547
Numerous other contributors can be found in the `Github Contribution Graph <https://github.com/tensorlayer/tensorlayer/graphs/contributors>`_.
4648

4749

0 commit comments

Comments
 (0)