Skip to content

Commit c984a9a

Browse files
authored
Merge pull request #39 from ChrisWu1997/master
Update docs and code style for 2.0 release
2 parents 26bf1a9 + aa579b6 commit c984a9a

File tree

80 files changed

+790
-2922
lines changed

Some content is hidden

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

80 files changed

+790
-2922
lines changed

docs/modules/cost.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
API - Cost
2-
================
2+
==================
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, , see `TensorFlow API <https://www.tensorflow.org/versions/r2.0/api_docs/python/tf>`_.
@@ -83,8 +83,7 @@ Regularization functions
8383
--------------------------
8484

8585
For ``tf.nn.l2_loss``, ``tf.contrib.layers.l1_regularizer``, ``tf.contrib.layers.l2_regularizer`` and
86-
``tf.contrib.layers.sum_regularizer``, see `TensorFlow API <https://www.tensorflow.org/versions/master/api_docs/index.html>`_.
87-
86+
``tf.contrib.layers.sum_regularizer``, see tensorflow API.
8887
Maxnorm
8988
^^^^^^^^^^
9089
.. autofunction:: maxnorm_regularizer

docs/modules/layers.rst

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,12 @@ Layer list
7373
GroupNorm
7474
SwitchNorm
7575

76-
ROIPoolingLayer
77-
7876
RNN
7977
BiRNN
8078

81-
ConvRNNCell
82-
BasicConvLSTMCell
83-
ConvLSTM
84-
8579
retrieve_seq_length_op
8680
retrieve_seq_length_op2
8781
retrieve_seq_length_op3
88-
target_mask_op
89-
90-
Seq2Seq
9182

9283
Flatten
9384
Reshape
@@ -106,8 +97,6 @@ Layer list
10697
Stack
10798
UnStack
10899

109-
SlimNets
110-
111100
Sign
112101
Scale
113102
BinaryDense
@@ -116,10 +105,6 @@ Layer list
116105
TernaryConv2d
117106
DorefaDense
118107
DorefaConv2d
119-
QuantizedDense
120-
QuantizedDenseWithBN
121-
QuantizedConv2d
122-
QuantizedConv2dWithBN
123108

124109
PRelu
125110
PRelu6
@@ -548,28 +533,6 @@ DorefaConv2d
548533
"""""""""""""""""""""
549534
.. autoclass:: DorefaConv2d
550535

551-
Quantization Dense Layer
552-
^^^^^^^^^^^^^^^^^^^^^^^^^^
553-
554-
QuantizedDense
555-
"""""""""""""""""""""
556-
.. autoclass:: QuantizedDense
557-
558-
QuantizedDenseWithBN
559-
""""""""""""""""""""""""""""""""""""
560-
.. autoclass:: QuantizedDenseWithBN
561-
562-
Quantization Convolutions
563-
^^^^^^^^^^^^^^^^^^^^^^^^^^
564-
565-
Quantization
566-
"""""""""""""""""""""
567-
.. autoclass:: QuantizedConv2d
568-
569-
QuantizedConv2dWithBN
570-
"""""""""""""""""""""
571-
.. autoclass:: QuantizedConv2dWithBN
572-
573536

574537
.. -----------------------------------------------------------
575538
.. Recurrent Layers
@@ -590,26 +553,6 @@ Bidirectional layer
590553
"""""""""""""""""""""""""""""""""
591554
.. autoclass:: BiRNN
592555

593-
594-
Recurrent Convolution
595-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
596-
597-
Conv RNN Cell
598-
"""""""""""""""""""""""""""""""""
599-
.. autoclass:: ConvRNNCell
600-
601-
Basic Conv LSTM Cell
602-
"""""""""""""""""""""""""""""""""
603-
.. autoclass:: BasicConvLSTMCell
604-
605-
Conv LSTM layer
606-
"""""""""""""""""""""""""""""""""
607-
.. autoclass:: ConvLSTM
608-
609-
Simple Seq2Seq
610-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
611-
.. autoclass:: Seq2Seq
612-
613556
Advanced Ops for Dynamic RNN
614557
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
615558
These operations usually be used inside Dynamic RNN layer, they can
@@ -627,9 +570,6 @@ Compute Sequence length 3
627570
""""""""""""""""""""""""""
628571
.. autofunction:: retrieve_seq_length_op3
629572

630-
Get Mask
631-
""""""""""""""""""""""""""
632-
.. autofunction:: target_mask_op
633573

634574

635575

docs/user/get_start_model.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Define a model
55
===============
66

77
TensorLayer provides two ways to define a model.
8-
Static model
9-
Dynamic model allows you to control the forward process
8+
Static model allows you to build model in a fluent way while dynamic model allows you to fully control the forward process.
109

1110
Static model
1211
===============
@@ -37,7 +36,6 @@ Dynamic model
3736

3837

3938
In this case, you need to manually input the output shape of the previous layer to the new layer.
40-
For example,
4139

4240
.. code-block:: python
4341

0 commit comments

Comments
 (0)