Skip to content

Commit ba5ed06

Browse files
committed
[example] for TF 1.0 (tfrecord3, dynamic_rnn still waiting for update)
1 parent d1f6217 commit ba5ed06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+18058
-197
lines changed

docs/modules/cost.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ API - Cost
33

44
To make TensorLayer simple, we minimize the number of cost functions as much as
55
we can. So we encourage you to use TensorFlow's function.
6-
For example, you can implement L1, L2 and sum regularization by ``tf.nn.l2_loss``,
6+
For example, you can implement L1, L2 and sum regularization by ``tf.nn.l2_loss``,
77
``tf.contrib.layers.l1_regularizer``, ``tf.contrib.layers.l2_regularizer`` and
88
``tf.contrib.layers.sum_regularizer``, see `TensorFlow API <https://www.tensorflow.org/versions/master/api_docs/index.html>`_.
99

@@ -117,6 +117,7 @@ to the cost function.
117117
.. autosummary::
118118

119119
cross_entropy
120+
sigmoid_cross_entropy
120121
binary_cross_entropy
121122
mean_squared_error
122123
dice_coe
@@ -132,10 +133,14 @@ to the cost function.
132133
maxnorm_i_regularizer
133134

134135

135-
Cross entropy
136-
------------------
136+
Softmax cross entropy
137+
----------------------
137138
.. autofunction:: cross_entropy
138139

140+
Sigmoid cross entropy
141+
----------------------
142+
.. autofunction:: sigmoid_cross_entropy
143+
139144
Binary cross entropy
140145
-------------------------
141146
.. autofunction:: binary_cross_entropy

example/_tf0.12/data/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
from __future__ import absolute_import
3+
4+
5+
from . import imagenet_classes
6+
# from . import

example/_tf0.12/data/cat/img1.jpg

6.28 KB
Loading

example/_tf0.12/data/cat/img2.jpg

5.36 KB
Loading

example/_tf0.12/data/cat/img3.jpg

7.3 KB
Loading

example/_tf0.12/data/cat/img4.jpg

6.9 KB
Loading

example/_tf0.12/data/cat/img5.jpg

4.92 KB
Loading

example/_tf0.12/data/cat/img6.jpg

4.76 KB
Loading

example/_tf0.12/data/cat/img7.jpg

3.12 KB
Loading

example/_tf0.12/data/cat/img8.jpg

6.79 KB
Loading

0 commit comments

Comments
 (0)