Updated Docs string with new apis
Updated Docs string with new apis .
Old - tf.keras.preprocessing.sequence.pad_sequences
New - tf.keras.utils.pad_sequences
@@ -991,22 +991,22 @@ def pad_sequences(
default.
>>> sequence = [[1], [2, 3], [4, 5, 6]]
- >>> tf.keras.preprocessing.sequence.pad_sequences(sequence)
+ >>> tf.keras.utils.pad_sequences(sequence)
array([[0, 0, 1],
[0, 2, 3],
[4, 5, 6]], dtype=int32)
- >>> tf.keras.preprocessing.sequence.pad_sequences(sequence, value=-1)
+ >>> tf.keras.utils.pad_sequences(sequence, value=-1)
array([[-1, -1, 1],
[-1, 2, 3],
[ 4, 5, 6]], dtype=int32)
- >>> tf.keras.preprocessing.sequence.pad_sequences(sequence, padding='post')
+ >>> tf.keras.utils.pad_sequences(sequence, padding='post')
array([[1, 0, 0],
[2, 3, 0],
[4, 5, 6]], dtype=int32)
- >>> tf.keras.preprocessing.sequence.pad_sequences(sequence, maxlen=2)
+ >>> tf.keras.utils.pad_sequences(sequence, maxlen=2)
array([[0, 1],
[2, 3],
[5, 6]], dtype=int32)
