Skip to content

Commit c92a638

Browse files
committed
releasee 0.5.1
1 parent e255434 commit c92a638

File tree

6 files changed

+31
-7
lines changed

6 files changed

+31
-7
lines changed

docs/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ method, this part of the documentation is for you.
6060
modules/files
6161
modules/nn
6262
modules/model
63-
modules/pretrain_models
6463
modules/vision
6564
modules/initializers
6665
modules/ops

docs/modules/nn.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Layer list
1313
.. autosummary::
1414

1515
Module
16-
16+
ModuleList
1717
Sequential
1818

1919
Input
@@ -125,7 +125,11 @@ Module
125125
^^^^^^^^^^^^^^^^
126126
.. autoclass:: Module
127127

128-
Sequential Layer
128+
ModuleList
129+
^^^^^^^^^^^^^^^^
130+
.. autoclass:: ModuleList
131+
132+
Sequential
129133
^^^^^^^^^^^^^^^^
130134
.. autoclass:: Sequential
131135

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
MAJOR = 0
2222
MINOR = 5
23-
PATCH = 0
23+
PATCH = 1
2424
PRE_RELEASE = ''
2525
# Use the following formatting: (major, minor, patch, prerelease)
2626
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)

tensorlayerx/nn/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ def str2act(act):
5454
if len(act) > 5 and act[0:5] == "lrelu":
5555
try:
5656
alpha = float(act[5:])
57-
return tlx.ops.LeakyReLU(alpha=alpha)
57+
return tlx.ops.LeakyReLU(negative_slope=alpha)
5858
except Exception as e:
5959
raise Exception("{} can not be parsed as a float".format(act[5:]))
6060

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

tensorlayerx/nn/layers/deprecated.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,24 @@ def SequentialLayer(*args, **kwargs):
456456

457457
def LayerList(*args, **kwargs):
458458
raise NonExistingLayerError("LayerList(layer_list) --> ModuleList(layer_list)" + __log__)
459+
460+
461+
__all__ += ['DeConv1d']
462+
463+
464+
def DeConv1d(*args, **kwargs):
465+
raise NonExistingLayerError("DeConv1d --> ConvTranspose1d" + __log__)
466+
467+
468+
__all__ += ['DeConv2d']
469+
470+
471+
def DeConv2d(*args, **kwargs):
472+
raise NonExistingLayerError("DeConv2d --> ConvTranspose2d" + __log__)
473+
474+
475+
__all__ += ['DeConv3d']
476+
477+
478+
def DeConv3d(*args, **kwargs):
479+
raise NonExistingLayerError("DeConv3d --> ConvTranspose3d" + __log__)

tensorlayerx/package_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
MAJOR = 0
66
MINOR = 5
7-
PATCH = 0
7+
PATCH = 1
88
PRE_RELEASE = ''
99
# Use the following formatting: (major, minor, patch, prerelease)
1010
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)

0 commit comments

Comments
 (0)