Skip to content

Commit

Permalink
releasee 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric_lai committed Apr 14, 2022
1 parent e255434 commit c92a638
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ method, this part of the documentation is for you.
modules/files
modules/nn
modules/model
modules/pretrain_models
modules/vision
modules/initializers
modules/ops
Expand Down
8 changes: 6 additions & 2 deletions docs/modules/nn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Layer list
.. autosummary::

Module

ModuleList
Sequential

Input
Expand Down Expand Up @@ -125,7 +125,11 @@ Module
^^^^^^^^^^^^^^^^
.. autoclass:: Module

Sequential Layer
ModuleList
^^^^^^^^^^^^^^^^
.. autoclass:: ModuleList

Sequential
^^^^^^^^^^^^^^^^
.. autoclass:: Sequential

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

MAJOR = 0
MINOR = 5
PATCH = 0
PATCH = 1
PRE_RELEASE = ''
# Use the following formatting: (major, minor, patch, prerelease)
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)
Expand Down
4 changes: 2 additions & 2 deletions tensorlayerx/nn/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ def str2act(act):
if len(act) > 5 and act[0:5] == "lrelu":
try:
alpha = float(act[5:])
return tlx.ops.LeakyReLU(alpha=alpha)
return tlx.ops.LeakyReLU(negative_slope=alpha)
except Exception as e:
raise Exception("{} can not be parsed as a float".format(act[5:]))

if len(act) > 10 and act[0:10] == "leaky_relu":
try:
alpha = float(act[10:])
return tlx.ops.LeakyReLU(alpha=alpha)
return tlx.ops.LeakyReLU(negative_slope=alpha)
except Exception as e:
raise Exception("{} can not be parsed as a float".format(act[10:]))

Expand Down
21 changes: 21 additions & 0 deletions tensorlayerx/nn/layers/deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,3 +456,24 @@ def SequentialLayer(*args, **kwargs):

def LayerList(*args, **kwargs):
raise NonExistingLayerError("LayerList(layer_list) --> ModuleList(layer_list)" + __log__)


__all__ += ['DeConv1d']


def DeConv1d(*args, **kwargs):
raise NonExistingLayerError("DeConv1d --> ConvTranspose1d" + __log__)


__all__ += ['DeConv2d']


def DeConv2d(*args, **kwargs):
raise NonExistingLayerError("DeConv2d --> ConvTranspose2d" + __log__)


__all__ += ['DeConv3d']


def DeConv3d(*args, **kwargs):
raise NonExistingLayerError("DeConv3d --> ConvTranspose3d" + __log__)
2 changes: 1 addition & 1 deletion tensorlayerx/package_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

MAJOR = 0
MINOR = 5
PATCH = 0
PATCH = 1
PRE_RELEASE = ''
# Use the following formatting: (major, minor, patch, prerelease)
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)
Expand Down

0 comments on commit c92a638

Please sign in to comment.