File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 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.
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#
Original file line number Diff line number Diff line change 1010
1111setup (
1212 name = "tensorlayer" ,
13- version = "1.2.2 " ,
13+ version = "1.2.3 " ,
1414 include_package_data = True ,
1515 author = 'TensorLayer Contributors' ,
1616
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments