fixed range bug

This commit is contained in:
Chintan Shah 2019-10-07 20:40:54 -04:00
parent 2560e1d954
commit f6e6713f74
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class DCRNNSupervisor:
output = self.dcrnn_model(x)
# (horizon, batch_size, num_sensor * output_dim)
for t in y.size(0):
for t in range(y.size(0)):
per_timestep_loss[t] += self._compute_loss(y[t], output[t])
num_batches += 1