Skip to content

Commit 386a8d9

Browse files
committed
[docs] propress_seq
1 parent 86dcdc8 commit 386a8d9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/modules/prepro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Some of the code in this package are borrowed from Keras.
5252
array_to_img
5353

5454
pad_sequences
55-
precess_sequences
55+
process_sequences
5656
sequences_add_start_id
5757
sequences_get_mask
5858

tensorlayer/prepro.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ def channel_shift_multi(x, intensity, channel_index=2):
10151015
return np.asarray(results)
10161016

10171017
# noise
1018-
def drop(x, keep=0.5):
1018+
def drop(x, keep=0.5):
10191019
"""Randomly set some pixels to zero by a given keeping probability.
10201020
10211021
Parameters
@@ -1209,8 +1209,7 @@ def array_to_img(x, dim_ordering=(0,1,2), scale=True):
12091209

12101210

12111211
## Sequence
1212-
def pad_sequences(sequences, maxlen=None, dtype='int32',
1213-
padding='post', truncating='pre', value=0.):
1212+
def pad_sequences(sequences, maxlen=None, dtype='int32', padding='post', truncating='pre', value=0.):
12141213
"""Pads each sequence to the same length:
12151214
the length of the longest sequence.
12161215
If maxlen is provided, any sequence longer

0 commit comments

Comments
 (0)