diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c660d3f4..bcacdc66d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -85,6 +85,36 @@ 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 + +- Reinforcement learning(#1065) +- Mish activation(#1068) + +### Changed + +### Dependencies Update + +### Deprecated + +### Fixed + +- Fix README. +- Fix package info. + +### Removed + +### Security + +### Contributors + +- @zsdonghao +- @quantumiracle(1065) +- @Laicheng0830(#1068) + ## [2.2.1] - 2020-01-14 TensorLayer 2.2.1 is a maintenance release. @@ -591,6 +621,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 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 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)