Skip to content

Commit eeff865

Browse files
authored
Update dynamic_quantization_tutorial.py
1 parent f7a79f8 commit eeff865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced_source/dynamic_quantization_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def batchify(data, bsz):
213213
def get_batch(source, i):
214214
seq_len = min(bptt, len(source) - 1 - i)
215215
data = source[i:i+seq_len]
216-
target = source[i+1:i+1+seq_len].view(-1)
216+
target = source[i+1:i+1+seq_len].reshape(-1)
217217
return data, target
218218

219219
def repackage_hidden(h):

0 commit comments

Comments
 (0)