Skip to content

Commit

Permalink
removed duplicate as (pytorch#3591)
Browse files Browse the repository at this point in the history
Co-authored-by: urmi22 <debjanimazumder22@example.com>
Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 20, 2021
1 parent ae1acbf commit 5f0532d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/models/detection/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def forward(self,
if targets is not None:
# make a copy of targets to avoid modifying it in-place
# once torchscript supports dict comprehension
# this can be simplified as as follows
# this can be simplified as follows
# targets = [{k: v for k,v in t.items()} for t in targets]
targets_copy: List[Dict[str, Tensor]] = []
for t in targets:
Expand Down

0 comments on commit 5f0532d

Please sign in to comment.