Skip to content

Commit

Permalink
fix : gpu loss plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
mathayay authored and ndem0 committed Nov 29, 2023
1 parent 42cf7fc commit 4639374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pina/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def plot_loss(self,
)
loss = trainer_metrics[metric]
epochs = range(len(loss))
plt.plot(epochs, loss, **kwargs)
plt.plot(epochs, loss.cpu(), **kwargs)

# plotting
plt.xlabel('epoch')
Expand Down

0 comments on commit 4639374

Please sign in to comment.