From cc0d7739dde26b252a9e910572e90bfdc251a5bd Mon Sep 17 00:00:00 2001 From: laicheng Date: Sun, 26 Apr 2020 21:28:24 +0800 Subject: [PATCH 1/4] release 2.2.2 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ tensorlayer/package_info.py | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c660d3f4..71f20b906 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -85,6 +85,31 @@ To release a new version, please update the changelog as followed: ### Contributors +## [2.2.2] - 2020-04-26 + +TensorLayer 2.2.2 is a maintenance release. +### Added + +### Changed + +### Dependencies Update + +### Deprecated + +### Fixed + +- Fix README. +- Fix package info. + +### Removed + +### Security + +### Contributors + +- @zsdonghao +- @Laicheng0830 + ## [2.2.1] - 2020-01-14 TensorLayer 2.2.1 is a maintenance release. diff --git a/tensorlayer/package_info.py b/tensorlayer/package_info.py index 603aa7294..f9d7a1cac 100644 --- a/tensorlayer/package_info.py +++ b/tensorlayer/package_info.py @@ -4,7 +4,7 @@ MAJOR = 2 MINOR = 2 -PATCH = 1 +PATCH = 2 PRE_RELEASE = '' # Use the following formatting: (major, minor, patch, prerelease) VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE) From 3ca616618aaf9703cda6f328d4b9855ca4937fa9 Mon Sep 17 00:00:00 2001 From: laicheng Date: Sun, 26 Apr 2020 21:39:48 +0800 Subject: [PATCH 2/4] add link --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71f20b906..b04f8931d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,9 @@ To release a new version, please update the changelog as followed: TensorLayer 2.2.2 is a maintenance release. ### Added +- Reinforcement learning(#1065) +- Mish activation(#1068) + ### Changed ### Dependencies Update @@ -108,6 +111,7 @@ TensorLayer 2.2.2 is a maintenance release. ### Contributors - @zsdonghao +- @quantumiracle - @Laicheng0830 ## [2.2.1] - 2020-01-14 @@ -616,6 +620,7 @@ To many PR for this update, please check [here](https://github.com/tensorlayer/t @zsdonghao @luomai @DEKHTIARJonathan [Unreleased]: https://github.com/tensorlayer/tensorlayer/compare/2.0....master +[2.2.2]: https://github.com/tensorlayer/tensorlayer/compare/2.2.1...2.2.2 [2.2.1]: https://github.com/tensorlayer/tensorlayer/compare/2.2.0...2.2.1 [2.2.0]: https://github.com/tensorlayer/tensorlayer/compare/2.1.0...2.2.0 [2.1.0]: https://github.com/tensorlayer/tensorlayer/compare/2.0.2...2.1.0 From 30b18f0219427adb3945da796c3f2bfde5737474 Mon Sep 17 00:00:00 2001 From: laicheng Date: Sun, 26 Apr 2020 22:12:42 +0800 Subject: [PATCH 3/4] yapf --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b04f8931d..bcacdc66d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,6 +88,7 @@ To release a new version, please update the changelog as followed: ## [2.2.2] - 2020-04-26 TensorLayer 2.2.2 is a maintenance release. + ### Added - Reinforcement learning(#1065) @@ -111,8 +112,8 @@ TensorLayer 2.2.2 is a maintenance release. ### Contributors - @zsdonghao -- @quantumiracle -- @Laicheng0830 +- @quantumiracle(1065) +- @Laicheng0830(#1068) ## [2.2.1] - 2020-01-14 From a34a05101fdd80c41dc6fbc01b21391d717bd677 Mon Sep 17 00:00:00 2001 From: laicheng Date: Sun, 26 Apr 2020 22:45:11 +0800 Subject: [PATCH 4/4] fix yapf --- tensorlayer/layers/core.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tensorlayer/layers/core.py b/tensorlayer/layers/core.py index c4a8e2733..023d510a2 100644 --- a/tensorlayer/layers/core.py +++ b/tensorlayer/layers/core.py @@ -387,15 +387,11 @@ def _get_init_args(self, skip=3): # change function (e.g. act) into dictionary of module path and function name if inspect.isfunction(val): - if ("__module__" in dir(val)) and (len(val.__module__) > - 10) and (val.__module__[0:10] == "tensorflow"): + if ("__module__" in dir(val)) and (len(val.__module__) > 10) and (val.__module__[0:10] + == "tensorflow"): params[arg] = val.__name__ else: params[arg] = ('is_Func', utils.func2str(val)) - # if val.__name__ == "": - # params[arg] = utils.lambda2str(val) - # else: - # params[arg] = {"module_path": val.__module__, "func_name": val.__name__} # ignore more args e.g. TL initializer elif arg.endswith('init'): continue