Skip to content

Conversation

@tomrunia
Copy link

  • fix broadcasting for inference batch size > 1
  • change 4 instances of x.data[0] to x.item()

- change 4 instances of x.data[0] to x.item()
losses, output = model(data[0], target[0], inference=True)

losses = [torch.mean(loss_value) for loss_value in losses]
losses = [torch.mean(loss_value) for loss_value in losses]
Copy link

@stefan-sf-wu stefan-sf-wu Jan 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants