Skip to content

Dropout (Coarse) on HIP and HOST#676

Merged
LakshmiKumar23 merged 77 commits intoROCm:developfrom
r-abishek:ar/dropout_coarse
Mar 24, 2026
Merged

Dropout (Coarse) on HIP and HOST#676
LakshmiKumar23 merged 77 commits intoROCm:developfrom
r-abishek:ar/dropout_coarse

Conversation

@r-abishek
Copy link
Copy Markdown
Member

  • Adds Coarse Dropout augmentation 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

snehaa8 and others added 30 commits August 22, 2025 07:39
…ied QA for logic to implement random seed for non QA
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new tensor effects augmentation, coarse_dropout, with both HOST and HIP backend support, and wires it into the test suite and public API documentation.

Changes:

  • Adds rppt_coarse_dropout() public API and dispatch path (HOST + HIP).
  • Adds new HOST and HIP kernel implementations for coarse dropout.
  • Updates test-suite augmentation registries and adds a dropout region initializer + QA/perf hooks.

Reviewed changes

Copilot reviewed 10 out of 13 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
utilities/test_suite/rpp_test_suite_image.h Registers coarse_dropout and adds init_dropout_erase() helper for dropout box generation.
utilities/test_suite/common.py Adds coarse_dropout to augmentation maps and effect lists for test automation.
utilities/test_suite/HOST/Tensor_image_host.cpp Adds coarse_dropout execution path in host tensor test runner.
utilities/test_suite/HIP/Tensor_image_hip.cpp Adds coarse_dropout execution path and pinned allocations in HIP tensor test runner.
src/modules/tensor/rppt_tensor_effects_augmentations.cpp Adds rppt_coarse_dropout() entrypoint and backend dispatch.
src/modules/tensor/hip/kernel/coarse_dropout.cpp Adds HIP kernels + executor for coarse dropout.
src/modules/tensor/cpu/kernel/coarse_dropout.cpp Adds HOST kernel implementation for coarse dropout.
src/include/tensor/host_tensor_executors.hpp Declares coarse_dropout_host_tensor() executor template.
src/include/tensor/hip_tensor_executors.hpp Declares hip_exec_coarse_dropout_tensor() executor template.
docs/data/doxygenOutputs/effects_augmentation_coarse_dropout_img150x150.png.jpg Adds documentation sample output asset for coarse dropout.
api/rppt_tensor_effects_augmentations.h Documents and exposes rppt_coarse_dropout() in the public header.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 20, 2026

Codecov Report

❌ Patch coverage is 97.84483% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...dules/tensor/rppt_tensor_effects_augmentations.cpp 95.49% 6 Missing ⚠️
src/modules/tensor/hip/kernel/coarse_dropout.cpp 96.33% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #676      +/-   ##
===========================================
+ Coverage    91.97%   92.54%   +0.56%     
===========================================
  Files          204      206       +2     
  Lines        92299    92763     +464     
===========================================
+ Hits         84892    85841     +949     
+ Misses        7407     6922     -485     
Files with missing lines Coverage Δ
src/modules/tensor/cpu/kernel/coarse_dropout.cpp 100.00% <100.00%> (ø)
src/modules/tensor/hip/kernel/coarse_dropout.cpp 96.33% <96.33%> (ø)
...dules/tensor/rppt_tensor_effects_augmentations.cpp 93.22% <95.49%> (+3.72%) ⬆️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@rrawther rrawther left a comment

Choose a reason for hiding this comment

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

Please address the review comments

Copy link
Copy Markdown
Contributor

@rrawther rrawther left a comment

Choose a reason for hiding this comment

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

Some comments are still not resolved. PLease resolve all including copilot

@HazarathKumarM
Copy link
Copy Markdown
Contributor

Some comments are still not resolved. PLease resolve all including copilot

comments are all resolved now

@LakshmiKumar23 LakshmiKumar23 merged commit 2f8d950 into ROCm:develop Mar 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants