Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

"assert mask is not None" repetition #316

Open
andreaalf97 opened this issue Jan 16, 2021 · 0 comments · May be fixed by #317
Open

"assert mask is not None" repetition #316

andreaalf97 opened this issue Jan 16, 2021 · 0 comments · May be fixed by #317

Comments

@andreaalf97
Copy link

andreaalf97 commented Jan 16, 2021

Hi everyone, great project!

Just a simple mistake, but I thought I'd mention.

detr/util/misc.py

Lines 292 to 296 in a54b778

if mask is not None:
assert mask is not None
cast_mask = mask.to(device)
else:
cast_mask = None

Line 293, assert mask is not None is not necessary. Maybe left there from testing?

@andreaalf97 andreaalf97 linked a pull request Jan 16, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant