This commit is contained in:
Yunfan Shao 2018-09-28 12:52:14 +08:00 committed by GitHub
parent c4dbc7b902
commit 29fe62a959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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