converting to CPU
This commit is contained in:
parent
f92e7295a0
commit
d2913fd6f1
|
|
@ -131,8 +131,8 @@ class DCRNNSupervisor:
|
|||
loss = self._compute_loss(y, output)
|
||||
losses.append(loss.item())
|
||||
|
||||
y_truths.append(y)
|
||||
y_preds.append(output)
|
||||
y_truths.append(y.cpu())
|
||||
y_preds.append(output.cpu())
|
||||
|
||||
mean_loss = np.mean(losses)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue