Skip to content

Random Erase - Resolved copilot review comments#567

Merged
r-abishek merged 2 commits intor-abishek:ar/dropout_random_erasefrom
RooseweltMcW:apr/random_erase_dropout
Feb 25, 2026
Merged

Random Erase - Resolved copilot review comments#567
r-abishek merged 2 commits intor-abishek:ar/dropout_random_erasefrom
RooseweltMcW:apr/random_erase_dropout

Conversation

@RooseweltMcW
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

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

Updates the random erase test-suite setup to use BitDepthTestMode constants (instead of magic bit-depth values) and to properly initialize per-image box counts before invoking rppt_random_erase.

Changes:

  • Updated init_dropout_erase() to branch on BitDepthTestMode enum values (e.g., U8_TO_U8, F16_TO_F16, etc.) when filling the noise/color buffer.
  • Adjusted random-erase test invocations to pass BitDepthTestMode and renamed the noise buffer variable to colorBuffer.
  • Ensured numOfBoxes is deterministically initialized/assigned (including changing per-image count assignment to = 1).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
utilities/test_suite/rpp_test_suite_image.h Updates init_dropout_erase() to use BitDepthTestMode enums for buffer initialization and sets numOfBoxes[i] = 1.
utilities/test_suite/HOST/Tensor_image_host.cpp Updates random-erase test setup to zero-init numBoxesTensor, rename noise buffer variable, and pass BitDepthTestMode.
utilities/test_suite/HIP/Tensor_image_hip.cpp Initializes numOfBoxes for random erase and updates the init_dropout_erase() call to use batchSize and BitDepthTestMode.

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

@r-abishek r-abishek merged commit 716b289 into r-abishek:ar/dropout_random_erase Feb 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor fix Minor implementation fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants