Skip to content

Commit efded8e

Browse files
committed
update docs
1 parent b79491e commit efded8e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tensorlayer/files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ def save_ckpt(sess=None, mode_name='model.ckpt', save_dir='checkpoint', var_list
899899
if var_list == []:
900900
var_list = tf.global_variables()
901901

902-
print("[*] save %s ckpt n_params: %d" % (ckpt_file, len(var_list)))
902+
print("[*] save %s n_params: %d" % (ckpt_file, len(var_list)))
903903

904904
if printable:
905905
for idx, v in enumerate(var_list):
@@ -942,7 +942,7 @@ def load_ckpt(sess=None, mode_name='model.ckpt', save_dir='checkpoint', var_list
942942
if var_list == []:
943943
var_list = tf.global_variables()
944944

945-
print("[*] load %s ckpt n_params: %d" % (ckpt_file, len(var_list)))
945+
print("[*] load %s n_params: %d" % (ckpt_file, len(var_list)))
946946

947947
if printable:
948948
for idx, v in enumerate(var_list):

tensorlayer/layers.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3713,11 +3713,11 @@ class RNNLayer(Layer):
37133713
- see `RNN Cells in TensorFlow <https://www.tensorflow.org/api_docs/python/>`_
37143714
cell_init_args : a dictionary
37153715
The arguments for the cell initializer.
3716-
n_hidden : a int
3716+
n_hidden : an int
37173717
The number of hidden units in the layer.
37183718
initializer : initializer
37193719
The initializer for initializing the parameters.
3720-
n_steps : a int
3720+
n_steps : an int
37213721
The sequence length.
37223722
initial_state : None or RNN State
37233723
If None, initial_state is zero_state.
@@ -3977,19 +3977,19 @@ class BiRNNLayer(Layer):
39773977
- see `RNN Cells in TensorFlow <https://www.tensorflow.org/api_docs/python/>`_
39783978
cell_init_args : a dictionary
39793979
The arguments for the cell initializer.
3980-
n_hidden : a int
3980+
n_hidden : an int
39813981
The number of hidden units in the layer.
39823982
initializer : initializer
39833983
The initializer for initializing the parameters.
3984-
n_steps : a int
3984+
n_steps : an int
39853985
The sequence length.
39863986
fw_initial_state : None or forward RNN State
39873987
If None, initial_state is zero_state.
39883988
bw_initial_state : None or backward RNN State
39893989
If None, initial_state is zero_state.
39903990
dropout : `tuple` of `float`: (input_keep_prob, output_keep_prob).
39913991
The input and output keep probability.
3992-
n_layer : a int, default is 1.
3992+
n_layer : an int, default is 1.
39933993
The number of RNN layers.
39943994
return_last : boolean
39953995
- If True, return the last output, "Sequence input and single output"
@@ -4330,7 +4330,7 @@ class DynamicRNNLayer(Layer):
43304330
- see `RNN Cells in TensorFlow <https://www.tensorflow.org/api_docs/python/>`_
43314331
cell_init_args : a dictionary
43324332
The arguments for the cell initializer.
4333-
n_hidden : a int
4333+
n_hidden : an int
43344334
The number of hidden units in the layer.
43354335
initializer : initializer
43364336
The initializer for initializing the parameters.
@@ -4343,7 +4343,7 @@ class DynamicRNNLayer(Layer):
43434343
If None, initial_state is zero_state.
43444344
dropout : `tuple` of `float`: (input_keep_prob, output_keep_prob).
43454345
The input and output keep probability.
4346-
n_layer : a int, default is 1.
4346+
n_layer : an int, default is 1.
43474347
The number of RNN layers.
43484348
return_last : boolean
43494349
- If True, return the last output, "Sequence input and single output"
@@ -4588,7 +4588,7 @@ class BiDynamicRNNLayer(Layer):
45884588
- see `RNN Cells in TensorFlow <https://www.tensorflow.org/api_docs/python/>`_
45894589
cell_init_args : a dictionary
45904590
The arguments for the cell initializer.
4591-
n_hidden : a int
4591+
n_hidden : an int
45924592
The number of hidden units in the layer.
45934593
initializer : initializer
45944594
The initializer for initializing the parameters.
@@ -4604,7 +4604,7 @@ class BiDynamicRNNLayer(Layer):
46044604
If None, initial_state is zero_state.
46054605
dropout : `tuple` of `float`: (input_keep_prob, output_keep_prob).
46064606
The input and output keep probability.
4607-
n_layer : a int, default is 1.
4607+
n_layer : an int, default is 1.
46084608
The number of RNN layers.
46094609
return_last : boolean
46104610
If True, return the last output, "Sequence input and single output"\n
@@ -4830,7 +4830,7 @@ class Seq2Seq(Layer):
48304830
- see `RNN Cells in TensorFlow <https://www.tensorflow.org/api_docs/python/>`_
48314831
cell_init_args : a dictionary
48324832
The arguments for the cell initializer.
4833-
n_hidden : a int
4833+
n_hidden : an int
48344834
The number of hidden units in the layer.
48354835
initializer : initializer
48364836
The initializer for initializing the parameters.
@@ -4840,7 +4840,7 @@ class Seq2Seq(Layer):
48404840
If None, initial_state is of encoder zero_state.
48414841
dropout : `tuple` of `float`: (input_keep_prob, output_keep_prob).
48424842
The input and output keep probability.
4843-
n_layer : a int, default is 1.
4843+
n_layer : an int, default is 1.
48444844
The number of RNN layers.
48454845
return_seq_2d : boolean
48464846
- When return_last = False
@@ -5662,7 +5662,7 @@ def __init__(self,
56625662
# ----------
56635663
# layer : a list of :class:`Layer` instances
56645664
# The `Layer` class feeding into this layer.
5665-
# n_outputs : a int
5665+
# n_outputs : an int
56665666
# The number of output
56675667
# name : a string or None
56685668
# An optional name to attach to this layer.

0 commit comments

Comments
 (0)