pull/10/head
Eren Golge 2018-05-02 04:59:51 -07:00
parent 855dd365b5
commit 59f8d246c9
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ def train(model, criterion, criterion_st, data_loader, optimizer, epoch):
optimizer.zero_grad()
stop_target = stop_target.view(c.batch_size, stop_target.size(1) // c.r, -1)
stop_target = (stop_target.sum(2) > 0.0).long()
stop_target = (stop_target.sum(2) > 0.0).float()
# dispatch data to GPU
if use_cuda: