support GPU tensor for GridPatch and GridPatchDataset#6246
support GPU tensor for GridPatch and GridPatchDataset#6246wyli merged 10 commits intoProject-MONAI:devfrom
GridPatch and GridPatchDataset#6246Conversation
* `GridPatch`, `GridPatchd`, `RandGridPatch` and `RandGridPatchd` * `GridPatchDataset`, `PatchIter`, `PatchIterd` and `iter_patch`
|
/black |
Signed-off-by: monai-bot <[email protected]>
|
By checking the tests in CI, it seems |
thanks, let me skip the tests for this new feature for torch<1.11... |
Signed-off-by: Wenqi Li <[email protected]>
|
there are still some typing issues, I think you can debug with |
DCO Remediation Commit for Qingpeng Li <[email protected]> I, Qingpeng Li <[email protected]>, hereby add my Signed-off-by to this commit: 4d178e2 Signed-off-by: Qingpeng Li <[email protected]>
|
/black |
Signed-off-by: monai-bot <[email protected]>
Signed-off-by: Qingpeng Li <[email protected]>
|
/build |
1 similar comment
|
/build |
Signed-off-by: Wenqi Li <[email protected]>
|
/build |
Fixes #6245 .
Description
support GPU tensor for
GridPatch,GridPatchd,RandGridPatchandRandGridPatchdGridPatchDataset,PatchIter,PatchIterdanditer_patchChanges
GridPatch,GridPatchDatasetand their siblings need to copy GPU tensor to numpy array (or not support GPU tensor) in their pipeline. This PR enables them to support end-to-end GPU operations.pad_ndis used heavily, its robustness is improved. Some strange behavior introduced byPaduses numpy though pytorch backend is available #6066 is fixed.GridPatch,GridPatchwithpin_memory=Truesignificant slow-down in following epochs #6082 might be fixed by this PR?RandGridPatch's mode defaults toNone(consistent with docs)Need to Notice
PatchIter,PatchIterdanditer_patchare kept asNumpyPadMode.WRAP. However,GridPatchdefaults toNone. (might be inconsistent?)Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.