Skip to content

Commit 037d2a7

Browse files
committed
[RELEASE] 1.2.3
1 parent 37b0f0b commit 037d2a7

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
# built documents.
6868
#
6969
# The short X.Y version.
70-
version = '1.2.2'
70+
version = '1.2.3'
7171
# The full version, including alpha/beta/rc tags.
72-
release = '1.2.2'
72+
release = '1.2.3'
7373

7474
# The language for content autogenerated by Sphinx. Refer to documentation
7575
# for a list of supported languages.
@@ -143,7 +143,7 @@
143143
# The name for this set of Sphinx documents.
144144
# "<project> v<release> documentation" by default.
145145
#
146-
# html_title = 'TensorLayer v1.2.2'
146+
# html_title = 'TensorLayer v1.2.3'
147147

148148
# A shorter title for the navigation bar. Default is the same as html_title.
149149
#

setup.py

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

1111
setup(
1212
name = "tensorlayer",
13-
version = "1.2.2",
13+
version = "1.2.3",
1414
include_package_data=True,
1515
author='TensorLayer Contributors',
1616
author_email='[email protected]',

tensorlayer/layers.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2554,6 +2554,8 @@ class LambdaLayer(Layer):
25542554
The `Layer` class feeding into this layer.
25552555
fn : a function
25562556
The function that applies to the outputs of previous layer.
2557+
fn_args : a dictionary
2558+
The arguments for the function (option).
25572559
name : a string or None
25582560
An optional name to attach to this layer.
25592561
@@ -2571,14 +2573,15 @@ def __init__(
25712573
self,
25722574
layer = None,
25732575
fn = None,
2576+
kwargs = {},
25742577
name = 'lambda_layer',
25752578
):
25762579
Layer.__init__(self, name=name)
25772580
self.inputs = layer.outputs
25782581

25792582
print(" tensorlayer:Instantiate LambdaLayer %s" % self.name)
25802583
with tf.variable_scope(name) as vs:
2581-
self.outputs = fn(self.inputs)
2584+
self.outputs = fn(self.inputs, **kwargs)
25822585

25832586
self.all_layers = list(layer.all_layers)
25842587
self.all_params = list(layer.all_params)
@@ -2649,6 +2652,8 @@ class SlimNetsLayer(Layer):
26492652
The `Layer` class feeding into this layer.
26502653
slim_layer : a slim network function
26512654
The network you want to stack onto, end with ``return net, end_points``.
2655+
slim_args : dictionary
2656+
The arguments for the slim model.
26522657
name : a string or None
26532658
An optional name to attach to this layer.
26542659

0 commit comments

Comments
 (0)