diff --git a/tensorlayer/layers/convolution.py b/tensorlayer/layers/convolution.py index 1cc92d048..6a79131b3 100644 --- a/tensorlayer/layers/convolution.py +++ b/tensorlayer/layers/convolution.py @@ -497,7 +497,7 @@ def __init__( class UpSampling2dLayer(Layer): - """The :class:`UpSampling2dLayer` class is a up-sampling 2D layer, see `tf.image.resize_images `__. + """The :class:`UpSampling2dLayer` class is a up-sampling 2D layer, see `tf.image.resize_images `__. Parameters ---------- @@ -1369,6 +1369,7 @@ def conv2d( Examples -------- + >>> x = tf.placeholder(tf.float32, shape=(None, 28, 28, 1)) >>> net = InputLayer(x, name='inputs') >>> net = Conv2d(net, 64, (3, 3), act=tf.nn.relu, name='conv1_1') >>> net = Conv2d(net, 64, (3, 3), act=tf.nn.relu, name='conv1_2') diff --git a/tensorlayer/layers/extend.py b/tensorlayer/layers/extend.py index b97261a17..8481e1ea7 100644 --- a/tensorlayer/layers/extend.py +++ b/tensorlayer/layers/extend.py @@ -13,7 +13,7 @@ class ExpandDimsLayer(Layer): """ The :class:`ExpandDimsLayer` class inserts a dimension of 1 into a tensor's shape, - see `tf.expand_dims() `__ . + see `tf.expand_dims() `__ . Parameters ---------- @@ -57,7 +57,7 @@ def __init__( class TileLayer(Layer): """ The :class:`TileLayer` class constructs a tensor by tiling a given tensor, - see `tf.tile() `__ . + see `tf.tile() `__ . Parameters ----------