You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/sequences.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Lightning has built in support for dealing with sequential data.
9
9
10
10
11
11
Packed sequences as inputs
12
-
----------------------------
12
+
--------------------------
13
13
When using PackedSequence, do 2 things:
14
14
15
15
1. return either a padded tensor in dataset or a list of variable length tensors in the dataloader collate_fn (example above shows the list implementation).
@@ -29,7 +29,7 @@ When using PackedSequence, do 2 things:
29
29
y = rnn.pack_sequence(batch[1], enforce_sorted=False)
30
30
31
31
Truncated Backpropagation Through Time
32
-
---------------------------------------
32
+
--------------------------------------
33
33
There are times when multiple backwards passes are needed for each batch.
34
34
For example, it may save memory to use Truncated Backpropagation Through Time when training RNNs.
35
35
@@ -50,7 +50,7 @@ Lightning can handle TBTT automatically via this flag.
50
50
a `hiddens` arg.
51
51
52
52
Iterable Datasets
53
-
---------------------------------------
53
+
-----------------
54
54
Lightning supports using IterableDatasets as well as map-style Datasets. IterableDatasets provide a more natural
0 commit comments