Skip to content

Update Range decorator #2834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 24, 2021
Merged

Update Range decorator #2834

merged 4 commits into from
Aug 24, 2021

Conversation

bhashemian
Copy link
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
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
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