Dropout (Grid) and Dropout (Cutout) on HIP and HOST#679
Merged
LakshmiKumar23 merged 139 commits intoROCm:developfrom Mar 23, 2026
Merged
Dropout (Grid) and Dropout (Cutout) on HIP and HOST#679LakshmiKumar23 merged 139 commits intoROCm:developfrom
LakshmiKumar23 merged 139 commits intoROCm:developfrom
Conversation
Member
r-abishek
commented
Feb 21, 2026
- Adds Grid and Cutout Dropout augmentations on HIP and HOST
- Adds support for U8/F32/F16/I8 bit depths and NCHW/NHWC variants with toggle support
- Adds relevant unit / qa / performance tests
…all the bitdepths
…images in the docs
indentation modified
…ied QA for logic to implement random seed for non QA
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds two new tensor image augmentations—Cutout Dropout and Grid Dropout—across HOST and HIP backends, and wires them into the test suite and Doxygen docs.
Changes:
- Add
rppt_cutout_dropoutandrppt_grid_dropoutAPIs and backend dispatch inrppt_tensor_effects_augmentations.cpp. - Implement Grid Dropout kernels for CPU and HIP, plus test-suite ROI/anchor initializers for Cutout/Grid dropout.
- Register new augmentations in the test-suite maps/enums and add HOST/HIP test-case execution paths and doc output assets.
Reviewed changes
Copilot reviewed 10 out of 16 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| utilities/test_suite/rpp_test_suite_image.h | Adds augmentation IDs and introduces Cutout/Grid dropout ROI+anchor initializers for tests. |
| utilities/test_suite/common.py | Registers new augmentation IDs for test harness routing. |
| utilities/test_suite/HOST/Tensor_image_host.cpp | Adds HOST-side test cases invoking rppt_cutout_dropout / rppt_grid_dropout. |
| utilities/test_suite/HIP/Tensor_image_hip.cpp | Adds HIP-side test cases and allocations for Cutout/Grid dropout. |
| src/modules/tensor/rppt_tensor_effects_augmentations.cpp | Adds public API entry points and backend dispatch for Cutout/Grid dropout. |
| src/modules/tensor/hip/kernel/grid_dropout.cpp | Introduces HIP grid-dropout executor and kernels. |
| src/modules/tensor/cpu/kernel/grid_dropout.cpp | Introduces CPU grid-dropout implementation. |
| src/include/tensor/host_tensor_executors.hpp | Declares grid_dropout_host_tensor. |
| src/include/tensor/hip_tensor_executors.hpp | Declares hip_exec_grid_dropout_tensor. |
| docs/data/doxygenOutputs/effects_augmentation_gird_dropout_img150x150.png | Adds a Doxygen output image for grid dropout (filename includes a typo). |
| docs/data/doxygenOutputs/effects_augmentation_cutout_dropout_img150x150.png | Adds a Doxygen output image for cutout dropout. |
| api/rppt_tensor_effects_augmentations.h | Documents and declares rppt_cutout_dropout and rppt_grid_dropout APIs. |
Comments suppressed due to low confidence (1)
utilities/test_suite/HIP/Tensor_image_hip.cpp:2192
- When
testCase == GRID_DROPOUT,anchorBoxInfoTensoris allocated withhipHostMalloc, but it is never freed in the cleanup section (the free is gated bytestCase == ERASE || testCase == CUTOUT_DROPOUT). Add a correspondinghipHostFree(anchorBoxInfoTensor)for the grid-dropout path (and avoid double-free by structuring ownership clearly).
if(testCase == ERASE || testCase == CUTOUT_DROPOUT)
{
CHECK_RETURN_STATUS(hipHostFree(colorBuffer));
CHECK_RETURN_STATUS(hipHostFree(anchorBoxInfoTensor));
CHECK_RETURN_STATUS(hipHostFree(numOfBoxes));
}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Grid and cutout dropout - Resolved copilot review comments
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #679 +/- ##
===========================================
- Coverage 92.49% 91.96% -0.52%
===========================================
Files 202 204 +2
Lines 91730 92299 +569
===========================================
+ Hits 84838 84882 +44
- Misses 6892 7417 +525
🚀 New features to boost your workflow:
|
Grid dropout - Added check return status
msiddaiah
reviewed
Mar 16, 2026
msiddaiah
reviewed
Mar 16, 2026
rrawther
requested changes
Mar 16, 2026
Contributor
rrawther
left a comment
There was a problem hiding this comment.
please address all the review comments
msiddaiah
reviewed
Mar 16, 2026
rrawther
reviewed
Mar 17, 2026
rrawther
reviewed
Mar 18, 2026
rrawther
requested changes
Mar 18, 2026
Contributor
rrawther
left a comment
There was a problem hiding this comment.
please address review comments
rrawther
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.