Skip to content

Commit

Permalink
fix no dataloader printing
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikandreasseitz committed Oct 11, 2023
1 parent dcf85a7 commit 9cfcf8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qadence/ml_tools/train_grad.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def loss_fn(model: torch.nn.Module, data: torch.Tensor) -> tuple[torch.Tensor, d
loss, metrics = optimize_step(
model, optimizer, loss_fn, dataloader, device=device
)
loss = loss.item()

# single epoch with DictDataloader using a single iteration method
# DictDataloader returns a single sample of the data
Expand Down

0 comments on commit 9cfcf8b

Please sign in to comment.