Skip to content

Update Range decorator#2834

Merged
wyli merged 4 commits intoProject-MONAI:devfrom
bhashemian:range-decorator
Aug 24, 2021
Merged

Update Range decorator#2834
wyli merged 4 commits intoProject-MONAI:devfrom
bhashemian:range-decorator

Conversation

@bhashemian
Copy link
Copy Markdown
Member

@bhashemian bhashemian commented Aug 24, 2021

Description

This PR changes the methods for nn.Module to forward only. The reason is that __call__ finally calls forward and the overhead is insignificant in the tests that I have done, so annotating both create redundancy and make the output less readable.

It also drops the logic to annotate DataLoaders since their iterator is being created in the runtime and there is not any obvious way to annotate them. Instead, one can annotate Dataset.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).

@bhashemian bhashemian requested a review from wyli August 24, 2021 18:27
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Aug 24, 2021

/build

@wyli wyli enabled auto-merge (squash) August 24, 2021 18:48
Signed-off-by: Behrooz <[email protected]>
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Aug 24, 2021

/build

@wyli wyli merged commit 38ecaef into Project-MONAI:dev Aug 24, 2021
@bhashemian bhashemian deleted the range-decorator branch August 25, 2021 04:04
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