Skip to content

TensorLayer 1.8.0

Compare
Choose a tag to compare
@zsdonghao zsdonghao released this 07 Mar 16:00
· 1573 commits to master since this release
4a183c6

We recommend users to update and report bugs or issues.

Features

>>> x = tf.placeholder("float32", [None, 100])
>>> n = tl.layers.InputLayer(x, name='in')
>>> n = tl.layers.DenseLayer(n, 80, name='d1')
>>> n = tl.layers.DenseLayer(n, 80, name='d2')
>>> print(n)
... Last layer is: DenseLayer (d2) [None, 80]

The outputs can be sliced as follow:

>>> n2 = n[:, :30]
>>> print(n2)
... Last layer is: Layer (d2) [None, 30]

The outputs of all layers can be iterated as follow:

>>> for l in n:
>>>    print(l)
... Tensor("d1/Identity:0", shape=(?, 80), dtype=float32)
... Tensor("d2/Identity:0", shape=(?, 80), dtype=float32)

APIs

Others