Skip to content

Commit

Permalink
Merge pull request #1077 from Laicheng0830/Update_release
Browse files Browse the repository at this point in the history
Update release
  • Loading branch information
ChengLai authored Apr 26, 2020
2 parents f70c278 + a34a051 commit 5ac5a82
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions tensorlayer/layers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ == "<lambda>":
# 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
Expand Down
2 changes: 1 addition & 1 deletion tensorlayer/package_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ac5a82

Please sign in to comment.