Skip to content

2172 caching grid for randaffine#2228

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

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

Conversation

@wyli

@wyli wyli commented May 21, 2021

Copy link
Copy Markdown
Contributor

Signed-off-by: Wenqi Li wenqil@nvidia.com

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
Comment thread monai/transforms/spatial/array.py Outdated
Comment thread monai/transforms/spatial/array.py
Comment thread monai/transforms/spatial/dictionary.py

@rijobro rijobro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@rijobro

rijobro commented May 21, 2021

Copy link
Copy Markdown
Contributor

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 <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@wyli wyli force-pushed the 2172-cache-grid branch from 3f556b4 to 04f2d7f Compare May 21, 2021 12:47
@wyli

wyli commented May 21, 2021

Copy link
Copy Markdown
Contributor Author

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 <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds cache tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
wyli added a commit that referenced this pull request May 26, 2021
* cache grid

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds cache tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
wyli added a commit that referenced this pull request May 26, 2021
* cache grid

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds cache tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
wyli added a commit that referenced this pull request May 26, 2021
* cache grid

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds cache tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
wyli added a commit that referenced this pull request May 26, 2021
* cache grid

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds cache tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
wyli added a commit that referenced this pull request May 27, 2021
* cache grid

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds cache tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
wyli added a commit that referenced this pull request May 27, 2021
* cache grid

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds cache tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
wyli added a commit that referenced this pull request May 27, 2021
* cache grid

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds cache tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
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