Skip to content

Commit 40c018d

Browse files
authored
Improve docs (#341)
* improve docs : no listing for only one condition * imrpove docs
1 parent 43aad5e commit 40c018d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tensorlayer/layers/convolution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,8 @@ def deconv2d(layer,
13821382
A :class:`DeConv2dLayer` object.
13831383
13841384
"""
1385+
if act is None:
1386+
act = tf.identity
13851387
assert len(strides) == 2, "len(strides) should be 2, DeConv2d and DeConv2dLayer are different."
13861388
if tf.__version__ > '1.3':
13871389
logging.info("DeConv2d %s: n_filters:%s strides:%s pad:%s act:%s" % (name, str(n_filter), str(strides), padding, act.__name__))

tensorlayer/layers/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def clear_layers_name():
6969
7070
Examples
7171
---------
72-
Reset the current graph and try to refine model.
72+
Clean the current graph and try to re-define model.
7373
7474
>>> for .... (different model settings):
7575
>>> with tf.Graph().as_default() as graph: # clear all variables of TF
@@ -912,7 +912,7 @@ class ReconLayer(DenseLayer):
912912
913913
Methods
914914
-------
915-
pretrain(self, sess, x, X_train, X_val, denoise_name=None, n_epoch=100, batch_size=128, print_freq=10, save=True, save_name='w1pre')
915+
pretrain(sess, x, X_train, X_val, denoise_name=None, n_epoch=100, batch_size=128, print_freq=10, save=True, save_name='w1pre')
916916
Start to pre-train the parameters of the previous DenseLayer.
917917
918918
Notes

0 commit comments

Comments
 (0)