You need to sign in or sign up before continuing.
Unverified Commit 5f0532da authored by urmi22's avatar urmi22 Committed by GitHub
Browse files

removed duplicate as (#3591)


Co-authored-by: default avatarurmi22 <debjanimazumder22@example.com>
Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
parent ae1acbf1
...@@ -84,7 +84,7 @@ class GeneralizedRCNNTransform(nn.Module): ...@@ -84,7 +84,7 @@ class GeneralizedRCNNTransform(nn.Module):
if targets is not None: if targets is not None:
# make a copy of targets to avoid modifying it in-place # make a copy of targets to avoid modifying it in-place
# once torchscript supports dict comprehension # 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 = [{k: v for k,v in t.items()} for t in targets]
targets_copy: List[Dict[str, Tensor]] = [] targets_copy: List[Dict[str, Tensor]] = []
for t in targets: for t in targets:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment