Skip to content

Fix broadcasting for batch size > 1 - #84

Open
tomrunia wants to merge 6 commits into
NVIDIA:masterfrom
tomrunia:master
Open

Fix broadcasting for batch size > 1#84
tomrunia wants to merge 6 commits into
NVIDIA:masterfrom
tomrunia:master

Conversation

@tomrunia

Copy link
Copy Markdown
  • 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()
Comment thread main.py
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]

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

Copy link
Copy Markdown

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