Skip to content

2172 caching grid for randaffine#2228

Merged
wyli merged 3 commits intoProject-MONAI:devfrom
wyli:2172-cache-grid
May 21, 2021
Merged

2172 caching grid for randaffine#2228
wyli merged 3 commits intoProject-MONAI:devfrom
wyli:2172-cache-grid

Conversation

@wyli
Copy link
Copy Markdown
Contributor

@wyli wyli commented May 21, 2021

Signed-off-by: Wenqi Li [email protected]

Fixes #2172

Description

adds caching for the identity grid when the spatial size is not dynamic

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@wyli wyli requested review from Nic-Ma, ericspod and rijobro May 21, 2021 10:02
Copy link
Copy Markdown
Contributor

@rijobro rijobro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rijobro
Copy link
Copy Markdown
Contributor

rijobro commented May 21, 2021

Perhaps I missed it, but in the unit test, do you ever check that the cached grid is being used? Or perhaps just check that the cached grid is not None.

wyli added 3 commits May 21, 2021 13:46
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
@wyli wyli force-pushed the 2172-cache-grid branch from 3f556b4 to 04f2d7f Compare May 21, 2021 12:47
@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented May 21, 2021

Perhaps I missed it, but in the unit test, do you ever check that the cached grid is being used? Or perhaps just check that the cached grid is not None.

thanks -- added not None tests

@wyli wyli enabled auto-merge (squash) May 21, 2021 12:47
@wyli wyli merged commit 2fb4b21 into Project-MONAI:dev May 21, 2021
@wyli wyli deleted the 2172-cache-grid branch May 21, 2021 16:09
wyli added a commit that referenced this pull request May 26, 2021
* cache grid

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>

* adds cache tests

Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit that referenced this pull request May 26, 2021
* cache grid

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>

* adds cache tests

Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit that referenced this pull request May 26, 2021
* cache grid

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>

* adds cache tests

Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit that referenced this pull request May 26, 2021
* cache grid

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>

* adds cache tests

Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit that referenced this pull request May 26, 2021
* cache grid

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>

* adds cache tests

Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit that referenced this pull request May 27, 2021
* cache grid

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>

* adds cache tests

Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit that referenced this pull request May 27, 2021
* cache grid

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>

* adds cache tests

Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit that referenced this pull request May 27, 2021
* cache grid

Signed-off-by: Wenqi Li <[email protected]>

* update based on comments

Signed-off-by: Wenqi Li <[email protected]>

* adds cache tests

Signed-off-by: Wenqi Li <[email protected]>
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.

Cache grid info of RandAffined transform

2 participants