3610 Add ascontiguous utility and check in CacheDataset#3614
3610 Add ascontiguous utility and check in CacheDataset#3614wyli merged 13 commits intoProject-MONAI:devfrom
Conversation
merge master
merge master
merge master
merge master
merge master
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
|
/black |
|
/build |
|
I verified the PR with spleen segmentation pipeline. Thanks. |
wyli
left a comment
There was a problem hiding this comment.
Thanks, it looks good to me. (Torch contiguous can take additional parameters but I'm not sure if we need it at the moment. https://pytorch.org/docs/stable/generated/torch.Tensor.contiguous.html#torch.Tensor.contiguous)
Signed-off-by: Nic Ma <[email protected]>
Thanks for your review, sure, I added Thanks. |
|
/black |
|
/build |
|
Forgot to mention that 2 minor antipatterns were introduced: https://deepsource.io/gh/Project-MONAI/MONAI/run/a37b8f84-4ba2-4db2-b025-0ee5ee9ecc97/python/ |
Signed-off-by: Nic Ma <[email protected]>
|
Hi @wyli , Thanks for your reminder, I updated to fix the antipatterns and changed the utility function name to align with: Thanks. |
|
/black |
|
/build |
2 similar comments
|
/build |
|
/build |
|
/build |
…I#3614) * [DLMED] add ascontiguous Signed-off-by: Nic Ma <[email protected]> * [DLMED] add doc Signed-off-by: Nic Ma <[email protected]> * [DLMED] enhance CacheDataset Signed-off-by: Nic Ma <[email protected]> * [DLMED] add unit test Signed-off-by: Nic Ma <[email protected]> * [DLMED] export to utility Signed-off-by: Nic Ma <[email protected]> * [DLMED] add to subclasses Signed-off-by: Nic Ma <[email protected]> * [DLMED] update according to comments Signed-off-by: Nic Ma <[email protected]> * [DLMED] fix antipatterns Signed-off-by: Nic Ma <[email protected]>
* [DLMED] add ascontiguous Signed-off-by: Nic Ma <[email protected]> * [DLMED] add doc Signed-off-by: Nic Ma <[email protected]> * [DLMED] enhance CacheDataset Signed-off-by: Nic Ma <[email protected]> * [DLMED] add unit test Signed-off-by: Nic Ma <[email protected]> * [DLMED] export to utility Signed-off-by: Nic Ma <[email protected]> * [DLMED] add to subclasses Signed-off-by: Nic Ma <[email protected]> * [DLMED] update according to comments Signed-off-by: Nic Ma <[email protected]> * [DLMED] fix antipatterns Signed-off-by: Nic Ma <[email protected]>
Fixes #3610 .
Description
This PR added the
ascontiguousutility and apply inCacheDataset.Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.