mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-12-03 20:57:37 +08:00
fix bug
This commit is contained in:
parent
c4dbc7b902
commit
29fe62a959
@ -82,6 +82,6 @@ class Batch(object):
|
||||
batch_origin_length[name + "_origin_len"] = torch.LongTensor(origin_lengths[name])
|
||||
batch_x.update(batch_origin_length)
|
||||
|
||||
self.curidx += endidx
|
||||
self.curidx = endidx
|
||||
return batch_x, batch_y
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user