Skip to content

Commit 16d01dc

Browse files
author
Svetlana Karslioglu
committed
Fix
1 parent a2d6d26 commit 16d01dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/pipeline_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def data_process(raw_text_iter):
174174

175175
def batchify(data, bsz):
176176
# Divide the dataset into ``bsz`` parts.
177-
nbatch = data.size(0) // ``bsz``
177+
nbatch = data.size(0) // bsz
178178
# Trim off any extra elements that wouldn't cleanly fit (remainders).
179179
data = data.narrow(0, 0, nbatch * bsz)
180180
# Evenly divide the data across the ``bsz` batches.

0 commit comments

Comments
 (0)