Skip to content

Commit c1491b3

Browse files
arisliangluomai
authored andcommitted
fix a broken link and minor update doc example (#425)
* fix a broken link. * fix a broken link. * fix a broken link. * add placeholder for easy example reference.
1 parent 7a5b258 commit c1491b3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tensorlayer/layers/convolution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def __init__(
497497

498498

499499
class UpSampling2dLayer(Layer):
500-
"""The :class:`UpSampling2dLayer` class is a up-sampling 2D layer, see `tf.image.resize_images <https://www.tensorflow.org/versions/master/api_docs/python/image/resizing#resize_images>`__.
500+
"""The :class:`UpSampling2dLayer` class is a up-sampling 2D layer, see `tf.image.resize_images <https://www.tensorflow.org/api_docs/python/tf/image/resize_images>`__.
501501
502502
Parameters
503503
----------
@@ -1369,6 +1369,7 @@ def conv2d(
13691369
13701370
Examples
13711371
--------
1372+
>>> x = tf.placeholder(tf.float32, shape=(None, 28, 28, 1))
13721373
>>> net = InputLayer(x, name='inputs')
13731374
>>> net = Conv2d(net, 64, (3, 3), act=tf.nn.relu, name='conv1_1')
13741375
>>> net = Conv2d(net, 64, (3, 3), act=tf.nn.relu, name='conv1_2')

tensorlayer/layers/extend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class ExpandDimsLayer(Layer):
1414
"""
1515
The :class:`ExpandDimsLayer` class inserts a dimension of 1 into a tensor's shape,
16-
see `tf.expand_dims() <https://www.tensorflow.org/api_docs/python/array_ops/shapes_and_shaping#expand_dims>`__ .
16+
see `tf.expand_dims() <https://www.tensorflow.org/api_docs/python/tf/expand_dims>`__ .
1717
1818
Parameters
1919
----------
@@ -57,7 +57,7 @@ def __init__(
5757
class TileLayer(Layer):
5858
"""
5959
The :class:`TileLayer` class constructs a tensor by tiling a given tensor,
60-
see `tf.tile() <https://www.tensorflow.org/api_docs/python/array_ops/slicing_and_joining#tile>`__ .
60+
see `tf.tile() <https://www.tensorflow.org/api_docs/python/tf/tile>`__ .
6161
6262
Parameters
6363
----------

0 commit comments

Comments
 (0)