Skip to content

Commit 7e39a40

Browse files
eltociearfacebook-github-bot
authored andcommitted
Fix typo in torchvision_models.py (#53968)
Summary: accross -> across Pull Request resolved: #53968 Reviewed By: jbschlosser Differential Revision: D27035761 Pulled By: ngimel fbshipit-source-id: 94fac6f2e27648e70652fd29f7800e60b211acd5
1 parent da10ccd commit 7e39a40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

benchmarks/functional_autograd_benchmark/torchvision_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ def forward(self, outputs, targets):
702702
# Retrieve the matching between the outputs of the last layer and the targets
703703
indices = self.matcher(outputs_without_aux, targets)
704704

705-
# Compute the average number of target boxes accross all nodes, for normalization purposes
705+
# Compute the average number of target boxes across all nodes, for normalization purposes
706706
num_boxes = sum(len(t["labels"]) for t in targets)
707707
num_boxes = torch.as_tensor([num_boxes], dtype=torch.float, device=next(iter(outputs.values())).device)
708708
if is_dist_avail_and_initialized():

0 commit comments

Comments
 (0)