Skip to content

Commit b5b3b22

Browse files
pyup-botJonathan DEKHTIAR
authored and
Jonathan DEKHTIAR
committed
PyUP - Dependency Update Scheduled daily dependency update on thursday (#684)
* Pin keras to latest version 2.2.0 * Keras unpinned and set to range * Conv Layers File Cleaning * Bug Fix not saving activation fx in layers: BatchNorm and ElementWiseLambdaLayer * 1.8.6rc4 released * String Formating Fixed
1 parent ba43db8 commit b5b3b22

26 files changed

+112
-115
lines changed

CHANGELOG.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ To release a new version, please update the changelog as followed:
161161
- Update pytest from 3.5.1 to 3.6.0 (by @DEKHTIARJonathan and @pyup-bot in #647)
162162
- Update progressbar2 from 3.37.1 to 3.38.0 (by @DEKHTIARJonathan and @pyup-bot in #651)
163163
- Update scikit-image from 0.13.1 to 0.14.0 (by @DEKHTIARJonathan and @pyup-bot in #656)
164+
- Update keras from 2.1.6 to 2.2.0 (by @DEKHTIARJonathan and @pyup-bot in #684)
164165

165166
### Contributors
166167
@lgarithm @DEKHTIARJonathan @2wins @One-sixth @zsdonghao @luomai
@@ -178,6 +179,7 @@ To release a new version, please update the changelog as followed:
178179
- CircleCI added to build and upload Docker Containers for each PR merged and tag release (by @DEKHTIARJonathan in #648)
179180
- Decorator:
180181
- `tl.decorators` API created including `deprecated_alias` and `private_method` (by @DEKHTIARJonathan in #660)
182+
- `tl.decorators` API enriched with `protected_method` (by @DEKHTIARJonathan in #675)
181183
- Docker:
182184
- Containers for each release and for each PR merged on master built (by @DEKHTIARJonathan in #648)
183185
- Containers built in the following configurations (by @DEKHTIARJonathan in #648):
@@ -186,11 +188,13 @@ To release a new version, please update the changelog as followed:
186188
- py3 + cpu
187189
- py3 + gpu
188190
- Documentation:
191+
- Clean README (by @luomai in #677)
189192
- Release semantic version added on index page (by @DEKHTIARJonathan in #633)
190193
- Optimizers page added (by @DEKHTIARJonathan in #636)
191194
- `AMSGrad` added on Optimizers page added (by @DEKHTIARJonathan in #636)
192195
- Layer:
193196
- ElementwiseLambdaLayer added to use custom function to connect multiple layer inputs (by @One-sixth in #579)
197+
- AtrousDeConv2dLayer added (by @2wins in #662)
194198
- Optimizer:
195199
- AMSGrad Optimizer added based on `On the Convergence of Adam and Beyond (ICLR 2018)` (by @DEKHTIARJonathan in #636)
196200
- Setup:
@@ -223,33 +227,41 @@ To release a new version, please update the changelog as followed:
223227
- All the tests are now using a DEBUG level verbosity when run individualy (by @DEKHTIARJonathan in #660)
224228
- `tf.identity` as activation is **ignored**, thus reducing the size of the graph by removing useless operation (by @DEKHTIARJonathan in #667)
225229
- argument dictionaries are now checked and saved within the `Layer` Base Class (by @DEKHTIARJonathan in #667)
226-
- `unstack_layer` function transformed into Class `UnStackLayer` (by @DEKHTIARJonathan in #683)
230+
- `Layer` Base Class now presenting methods to update faultlessly `all_layers`, `all_params`, and `all_drop` (by @DEKHTIARJonathan in #675)
231+
- Input Layers have been removed from `tl.layers.core` and added to `tl.layers.inputs` (by @DEKHTIARJonathan in #675)
232+
- Input Layers are now considered as true layers in the graph (they represent a placeholder), unittests have been updated (by @DEKHTIARJonathan in #675)
233+
- Layer API is simplified, with automatic feeding `prev_layer` into `self.inputs` (by @DEKHTIARJonathan in #675)
227234

228235
### Deprecated
229236
- `tl.layers.TimeDistributedLayer` argurment `args` is deprecated in favor of `layer_args` (by @DEKHTIARJonathan in #667)
230237

231238
### Removed
232239
- `assert()` calls remove and replaced by `raise AssertionError()` (by @DEKHTIARJonathan in #667)
233240
- `tl.identity` is removed, not used anymore and deprecated for a long time (by @DEKHTIARJonathan in #667)
241+
- All Code specific to `TF.__version__ < "1.6"` have been removed (by @DEKHTIARJonathan in #675)
234242

235243
### Fixed
236244
- Issue #498 - Deprecation Warning Fix in `tl.layers.RNNLayer` with `inspect` (by @DEKHTIARJonathan in #574)
237245
- Issue #498 - Deprecation Warning Fix in `tl.files` with truth value of an empty array is ambiguous (by @DEKHTIARJonathan in #575)
238246
- 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)
239247
- Issue #572 with `tl.layers.DeformableConv2d` fixed (by @DEKHTIARJonathan in #573)
248+
- Issue #664 with `tl.layers.ConvLSTMLayer` fixed (by @dengyueyun666 in #676)
240249
- Typo of the document of ElementwiseLambdaLayer (by @zsdonghao in #588)
241250
- Error in `tl.layers.TernaryConv2d` fixed - self.inputs not defined (by @DEKHTIARJonathan in #658)
242251
- Deprecation warning fixed in `tl.layers.binary._compute_threshold()` (by @DEKHTIARJonathan in #658)
243252
- All references to `tf.logging` replaced by `tl.logging` (by @DEKHTIARJonathan in #661)
244253
- Duplicated code removed when bias was used (by @DEKHTIARJonathan in #667)
254+
- `tensorlayer.third_party.roi_pooling.roi_pooling.roi_pooling_ops` is now lazy loaded to prevent systematic error raised (by @DEKHTIARJonathan in #675)
245255
- Tutorial:
246256
- `tutorial_word2vec_basic.py` saving issue #476 fixed (by @DEKHTIARJonathan in #635)
247257
- All tutorials tested and errors have been fixed (by @DEKHTIARJonathan in #635)
258+
### Security
248259

249260
### Dependencies Update
250261
- Update pytest from 3.5.1 to 3.6.0 (by @DEKHTIARJonathan and @pyup-bot in #647)
251262
- Update progressbar2 from 3.37.1 to 3.38.0 (by @DEKHTIARJonathan and @pyup-bot in #651)
252263
- Update scikit-image from 0.13.1 to 0.14.0 (by @DEKHTIARJonathan and @pyup-bot in #656)
264+
- Update keras from 2.1.6 to 2.2.0 (by @DEKHTIARJonathan and @pyup-bot in #684)
253265

254266
### Contributors
255267
@lgarithm @DEKHTIARJonathan @2wins @One-sixth @zsdonghao @luomai
@@ -294,5 +306,5 @@ To release a new version, please update the changelog as followed:
294306
@zsdonghao @luomai @DEKHTIARJonathan
295307

296308
[Unreleased]: https://github.com/tensorlayer/tensorlayer/compare/1.8.5...master
297-
[1.8.6]: https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc3...1.8.5
309+
[1.8.6]: https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc4...1.8.5
298310
[1.8.5]: https://github.com/tensorlayer/tensorlayer/compare/1.8.4...1.8.5

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
![PyPI Stable Version](http://ec2-35-178-47-120.eu-west-2.compute.amazonaws.com/github/release/tensorlayer/tensorlayer.svg?label=PyPI%20-%20Release)
1616
![PyPI RC Version](http://ec2-35-178-47-120.eu-west-2.compute.amazonaws.com/github/release/tensorlayer/tensorlayer/all.svg?label=PyPI%20-%20Pre-Release)
17-
[![Github commits (since latest release)](http://ec2-35-178-47-120.eu-west-2.compute.amazonaws.com/github/commits-since/tensorlayer/tensorlayer/latest.svg)](https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc3...master)
17+
[![Github commits (since latest release)](http://ec2-35-178-47-120.eu-west-2.compute.amazonaws.com/github/commits-since/tensorlayer/tensorlayer/latest.svg)](https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc4...master)
1818
[![PyPI - Python Version](http://ec2-35-178-47-120.eu-west-2.compute.amazonaws.com/pypi/pyversions/tensorlayer.svg)](https://pypi.org/project/tensorlayer/)
1919
[![Supported TF Version](http://ec2-35-178-47-120.eu-west-2.compute.amazonaws.com/badge/tensorflow-1.6.0+-blue.svg)](https://github.com/tensorflow/tensorflow/releases)
2020

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
:target: https://pypi.org/project/tensorlayer/
4141

4242
.. image:: http://ec2-35-178-47-120.eu-west-2.compute.amazonaws.com/github/commits-since/tensorlayer/tensorlayer/latest.svg
43-
:target: https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc3...master
43+
:target: https://github.com/tensorlayer/tensorlayer/compare/1.8.6rc4...master
4444

4545
.. image:: http://ec2-35-178-47-120.eu-west-2.compute.amazonaws.com/pypi/pyversions/tensorlayer.svg
4646
:target: https://pypi.org/project/tensorlayer/

example/tutorial_frozenlake_dqn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ def to_one_hot(i, n_classes=None):
103103

104104
## Note that, the rewards here with random action
105105
running_reward = rAll if running_reward is None else running_reward * 0.99 + rAll * 0.01
106-
print("Episode [%d/%d] sum reward:%f running reward:%f took:%.5fs %s" % \
106+
print("Episode [%d/%d] sum reward: %f running reward: %f took: %.5fs %s" % \
107107
(i, num_episodes, rAll, running_reward, time.time() - episode_time, '' if rAll == 0 else ' !!!!!!!!'))

example/tutorial_frozenlake_q_table.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
break
5151
rList.append(rAll)
5252
running_reward = r if running_reward is None else running_reward * 0.99 + r * 0.01
53-
print("Episode [%d/%d] sum reward:%f running reward:%f took:%.5fs %s" % \
53+
print("Episode [%d/%d] sum reward: %f running reward: %f took: %.5fs %s" % \
5454
(i, num_episodes, rAll, running_reward, time.time() - episode_time, '' if rAll == 0 else ' !!!!!!!!'))
5555

5656
print("Final Q-Table Values:/n %s" % Q)

example/tutorial_word2vec_basic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def main_word2vec_basic():
250250
if step % print_freq == 0:
251251
if step > 0:
252252
average_loss /= print_freq
253-
print("Average loss at step %d/%d. loss:%f took:%fs" % \
253+
print("Average loss at step %d/%d. loss: %f took: %fs" % \
254254
(step, num_steps, average_loss, time.time() - start_time))
255255
average_loss = 0
256256
# Prints out nearby words given a list of words.

requirements/requirements_test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
keras>=2.1,<2.2
1+
keras>=2.2,<2.3
22
pycodestyle>=2.4,<2.5
33
pydocstyle>=2.1,<2.2
44
pytest>=3.6,<3.7

tensorlayer/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
global_dict = {}
5757

5858
# Use the following formating: (major, minor, patch, prerelease)
59-
VERSION = (1, 8, 6, "rc3")
59+
VERSION = (1, 8, 6, "rc4")
6060
__shortversion__ = '.'.join(map(str, VERSION[:3]))
6161
__version__ = '.'.join(map(str, VERSION[:3])) + "".join(VERSION[3:])
6262

tensorlayer/cli/train.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ def main(args):
139139
print('Using program %s with args %s' % (args.file, ' '.join(args.args)))
140140
print('Using %d workers, %d parameter servers, %d GPUs.' % (num_workers, args.num_pss, len(GPU_IDS)))
141141
cluster_spec = {
142-
'ps': ['localhost:%d' % (PORT_BASE + i) for i in range(args.num_pss)],
143-
'worker': ['localhost:%d' % (PORT_BASE + args.num_pss + i) for i in range(num_workers)]
142+
'ps': ['localhost: %d' % (PORT_BASE + i) for i in range(args.num_pss)],
143+
'worker': ['localhost: %d' % (PORT_BASE + args.num_pss + i) for i in range(num_workers)]
144144
}
145145
processes = list(create_tf_jobs(cluster_spec, args.file, args.args))
146146
try:

tensorlayer/files/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def load_cropped_svhn(path='data', include_extra=True):
396396
logging.info(" added n_extra {} to n_train {} took {}s".format(len(y_extra), len(y_train), time.time() - t))
397397
else:
398398
logging.info(" no extra images are included")
399-
logging.info(" image size:%s n_train:%d n_test:%d" % (str(X_train.shape[1:4]), len(y_train), len(y_test)))
399+
logging.info(" image size: %s n_train: %d n_test: %d" % (str(X_train.shape[1:4]), len(y_train), len(y_test)))
400400
logging.info(" took: {}s".format(int(time.time() - start_time)))
401401
return X_train, y_train, X_test, y_test
402402

tensorlayer/layers/binary.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def __init__(
150150
).__init__(prev_layer=prev_layer, act=act, W_init_args=W_init_args, b_init_args=b_init_args, name=name)
151151
logging.info(
152152
"BinaryDenseLayer %s: %d %s" %
153-
(self.name, n_units, self.act.__name__ if self.act is not None else '- No Activation')
153+
(self.name, n_units, self.act.__name__ if self.act is not None else 'No Activation')
154154
)
155155

156156
if self.inputs.get_shape().ndims != 2:
@@ -279,9 +279,9 @@ def __init__(
279279
).__init__(prev_layer=prev_layer, act=act, W_init_args=W_init_args, b_init_args=b_init_args, name=name)
280280

281281
logging.info(
282-
"BinaryConv2d %s: n_filter:%d filter_size:%s strides:%s pad:%s act:%s" % (
282+
"BinaryConv2d %s: n_filter: %d filter_size: %s strides: %s pad: %s act: %s" % (
283283
self.name, n_filter, str(filter_size), str(strides), padding, self.act.__name__
284-
if self.act is not None else '- No Activation'
284+
if self.act is not None else 'No Activation'
285285
)
286286
)
287287

@@ -378,7 +378,7 @@ def __init__(
378378

379379
logging.info(
380380
"TernaryDenseLayer %s: %d %s" %
381-
(self.name, n_units, self.act.__name__ if self.act is not None else '- No Activation')
381+
(self.name, n_units, self.act.__name__ if self.act is not None else 'No Activation')
382382
)
383383

384384
if self.inputs.get_shape().ndims != 2:
@@ -510,9 +510,9 @@ def __init__(
510510
).__init__(prev_layer=prev_layer, act=act, W_init_args=W_init_args, b_init_args=b_init_args, name=name)
511511

512512
logging.info(
513-
"TernaryConv2d %s: n_filter:%d filter_size:%s strides:%s pad:%s act:%s" % (
513+
"TernaryConv2d %s: n_filter: %d filter_size: %s strides: %s pad: %s act: %s" % (
514514
self.name, n_filter, str(filter_size), str(strides), padding, self.act.__name__
515-
if self.act is not None else '- No Activation'
515+
if self.act is not None else 'No Activation'
516516
)
517517
)
518518

@@ -619,7 +619,7 @@ def __init__(
619619

620620
logging.info(
621621
"DorefaDenseLayer %s: %d %s" %
622-
(self.name, n_units, self.act.__name__ if self.act is not None else '- No Activation')
622+
(self.name, n_units, self.act.__name__ if self.act is not None else 'No Activation')
623623
)
624624

625625
if self.inputs.get_shape().ndims != 2:
@@ -756,9 +756,9 @@ def __init__(
756756
).__init__(prev_layer=prev_layer, act=act, W_init_args=W_init_args, b_init_args=b_init_args, name=name)
757757

758758
logging.info(
759-
"DorefaConv2d %s: n_filter:%d filter_size:%s strides:%s pad:%s act:%s" % (
759+
"DorefaConv2d %s: n_filter: %d filter_size: %s strides: %s pad: %s act: %s" % (
760760
self.name, n_filter, str(filter_size), str(strides), padding, self.act.__name__
761-
if self.act is not None else '- No Activation'
761+
if self.act is not None else 'No Activation'
762762
)
763763
)
764764

0 commit comments

Comments
 (0)