Skip to content

Commit ec26934

Browse files
authored
release 2.0.1 (#973)
* release 2.0.1 * Update initializers.py * Update README.md * Update README.md * Update README.md * Update README.md * Update CHANGELOG.md * remove circleci * add circleci back
1 parent f88f23e commit ec26934

File tree

6 files changed

+17
-76
lines changed

6 files changed

+17
-76
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,3 @@ deploy:
117117
python: '3.6'
118118
condition: '$_TF_VERSION = 2.0.0a0'
119119
# condition: '$_TF_VERSION = 1.11.0'
120-

CHANGELOG.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ To release a new version, please update the changelog as followed:
6767

6868
<!-- YOU CAN EDIT FROM HERE -->
6969

70-
## [Unreleased]
70+
## [2.0.1] - 2019-5-17
71+
72+
73+
A maintain release.
74+
75+
### Changed
76+
- remove `tl.layers.initialize_global_variables(sess)` (PR #931)
77+
- support `trainable_weights` (PR #966)
7178

7279
### Added
7380
- Layer
@@ -78,29 +85,27 @@ To release a new version, please update the changelog as followed:
7885
- change `tl.layers.core`, `tl.models.core` (PR #966)
7986
- change `weights` into `all_weights`, `trainable_weights`, `nontrainable_weights`
8087

88+
8189
### Dependencies Update
8290
- nltk>=3.3,<3.4 => nltk>=3.3,<3.5 (PR #892)
8391
- pytest>=3.6,<3.11 => pytest>=3.6,<4.1 (PR #889)
8492
- yapf>=0.22,<0.25 => yapf==0.25.0 (PR #896)
8593
- imageio==2.5.0 progressbar2==3.39.3 scikit-learn==0.21.0 scikit-image==0.15.0 scipy==1.2.1 wrapt==1.11.1 pymongo==3.8.0 sphinx==2.0.1 wrapt==1.11.1 opencv-python==4.1.0.25 requests==2.21.0 tqdm==4.31.1 lxml==4.3.3 pycodestyle==2.5.0 sphinx==2.0.1 yapf==0.27.0(PR #967)
8694

87-
### Deprecated
88-
8995
### Fixed
9096
- fix docs of models @zsdonghao #957
9197
- In `BatchNorm`, keep dimensions of mean and variance to suit `channels first` (PR #963)
9298

93-
94-
### Removed
95-
96-
### Security
97-
9899
### Contributors
100+
- @warshallrho: #PR966
99101
- @zsdonghao: #931
100102
- @yd-yin: #963
101103

102104

103-
## [2.0.0-alpha] - 2019-05-04
105+
106+
## [2.0.0] - 2019-05-04
107+
108+
To many PR for this update, please check [here](https://github.com/tensorlayer/tensorlayer/releases/tag/2.0.0) for more details.
104109

105110
### Changed
106111
* update for TensorLayer 2.0.0 alpha version (PR #952)
@@ -119,6 +124,7 @@ To release a new version, please update the changelog as followed:
119124
- @ChrisWu1997
120125
- @warshallrho
121126

127+
122128
## [1.11.1] - 2018-11-15
123129

124130
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ and fine-tune. On the contrary, TensorLayer APIs are generally lightweight, flex
6262
Users often find it easy to start with the examples and tutorials, and then dive
6363
into TensorFlow seamlessly. In addition, TensorLayer does not create library lock-in through native supports for importing components from Keras.
6464

65-
TensorLayer has a fast growing usage among top researchers and engineers, from universities like
65+
TensorLayer has a fast growing usage among top researchers and engineers, from universities like Peking University,
6666
Imperial College London, UC Berkeley, Carnegie Mellon University, Stanford University, and
6767
University of Technology of Compiegne (UTC), and companies like Google, Microsoft, Alibaba, Tencent, Xiaomi, and Bloomberg.
6868

examples/basic_tutorials/README.md

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1 @@
1-
Something you need to know:
21

3-
### 1. Static and dynamic model
4-
5-
1) `tutorial_mnist_mlp_static.py`: static model
6-
7-
2) `tutorial_mnist_mlp_dynamic.py`: dynamic model
8-
9-
### 2. Switching Training and testing
10-
11-
There are two ways to switch the training and testing mode:
12-
13-
1 ) use Pytorch-like method, turn on and off the training/evaluation as follow:
14-
15-
```python
16-
model.train() # enable dropout, batch norm decay and etc
17-
y1 = model(x)
18-
model.eval() # disable dropout, fix batch norm weights and etc
19-
y2 = model(x)
20-
```
21-
22-
2) use TensorLayer 1.x method, input `is_train` to the model while inferencing.
23-
24-
```python
25-
y1 = model(x, is_train=True)
26-
y2 = model(x, is_train=False)
27-
```
28-
29-
30-
31-
### Data augmentation
32-
33-
- Data augmentation is essential for training, while if the augmentation is complex, it will slow down the training.
34-
We used CIFAR10 classification as example of data augmentation.
35-
- For the best performance, please use `tutorial_cifar10_datasetapi.py`.
36-
- It is suggested to use TensorFlow's DataSet API (`tf.data` and `tf.image`) and TFRecord for the sake of performance and generalibity.
37-
- For TFRecord and Dataset API,
38-
TFRecord needs to first store all data into TFRecord format, while Dataset API is simpler that can directly use data XXXX.
39-
40-
### Float16
41-
- For Float16, some GPUs can speed up but some cannot.
42-
43-
### Others
44-
- For distributed training

tensorlayer/initializers.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -192,27 +192,6 @@ def deconv2d_bilinear_upsampling_initializer(shape):
192192
A constant initializer with weights set to correspond to per channel bilinear upsampling
193193
when passed as W_int in DeConv2dLayer
194194
195-
Examples
196-
--------
197-
Upsampling by a factor of 2, ie e.g 100->200
198-
>>> import tensorflow as tf
199-
>>> import tensorlayer as tl
200-
>>> rescale_factor = 2
201-
>>> imsize = 128
202-
>>> num_channels = 3
203-
>>> num_in_channels = 3
204-
>>> num_out_channels = 3
205-
>>> filter_shape = (5, 5, num_out_channels, num_in_channels)
206-
>>> ni = tl.layers.Input(shape=(1, imsize, imsize, num_channels))
207-
>>> bilinear_init = deconv2d_bilinear_upsampling_initializer(shape=filter_shape)
208-
>>> net = tl.layers.DeConv2dLayer(
209-
... shape=filter_shape,
210-
... outputs_shape=(1, imsize*rescale_factor, imsize*rescale_factor, num_out_channels),
211-
... strides=(1, rescale_factor, rescale_factor, 1),
212-
... W_init=bilinear_init,
213-
... padding='SAME',
214-
... act=None, name='g/h1/decon2d')(ni)
215-
216195
"""
217196
if shape[0] != shape[1]:
218197
raise Exception('deconv2d_bilinear_upsampling_initializer only supports symmetrical filter sizes')

tensorlayer/package_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
MAJOR = 2
66
MINOR = 0
7-
PATCH = 0
7+
PATCH = 1
88
PRE_RELEASE = ''
99
# Use the following formatting: (major, minor, patch, prerelease)
1010
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)

0 commit comments

Comments
 (0)