Grid and Cutout Dropout implementation#553
Grid and Cutout Dropout implementation#553r-abishek merged 124 commits intor-abishek:ar/dropout_grid_cutoutfrom
Conversation
…all the bitdepths
…images in the docs
indentation modified
…ied QA for logic to implement random seed for non QA
| dstPtrRowG += dstDescPtr->strides.hStride; | ||
| dstPtrRowB += dstDescPtr->strides.hStride; | ||
| } | ||
| for(int count = 0; count < numBoxes; count++) |
There was a problem hiding this comment.
Did we check the impact on erase due to all these changes?
* Fix log1p test suite upgrades for HIP * Updates for HOST Test Fixes * Fixes for box filter * Remove hardcoding of channel details * Update utilities/test_suite/rpp_test_suite_misc.h Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update utilities/test_suite/HIP/Tensor_misc_hip.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Srihari-mcw <srihari@multicorewareinc.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
| #endif // GPU_SUPPORT | ||
|
|
||
| /*! \brief Cutout dropout augmentation on HOST backend for a NCHW/NHWC layout tensor | ||
| * \details Cutout dropout function erases one random regions from an image, for a batch of RGB(3 channel) / greyscale(1 channel) images with an NHWC/NCHW tensor layout.<br> |
There was a problem hiding this comment.
change it like
Cutout dropout function erases random region from an image
| * \param [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8/F16/F32/I8, layout = NCHW/NHWC, c = 1/3) | ||
| * \param [out] dstPtr destination tensor in HIP memory | ||
| * \param [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8/F16/F32/I8, layout = NCHW/NHWC, c = same as that of srcDescPtr) | ||
| * \param [in] anchorBoxInfoTensor Precomputed cutout erase regions for the batch, stored as an array of RpptRoiLtrb of size (batchSize * boxesInEachImage) |
There was a problem hiding this comment.
please add the memory types like pinned / HIP for all the params
| * \param [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8/F16/F32/I8, layout = NCHW/NHWC, c = 1/3) | ||
| * \param [out] dstPtr destination tensor in HIP memory | ||
| * \param [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8/F16/F32/I8, layout = NCHW/NHWC, c = same as that of srcDescPtr) | ||
| * \param [in] anchorBoxInfoTensor Precomputed grid erase regions for the batch, stored as an array of RpptRoiLtrb of size (batchSize * boxesInEachImage) |
There was a problem hiding this comment.
specify the memory type
src/include/tensor/api_helpers.hpp
Outdated
|
|
||
| #include "rpp.h" | ||
| #include "rppdefs.h" | ||
| #include <random> |
There was a problem hiding this comment.
why this is included here, please check and remove if it's not needed
| RppPtr_t dstPtr, | ||
| RpptDescPtr dstDescPtr, | ||
| RpptRoiLtrb *anchorBoxInfoTensor, | ||
| RppPtr_t colorsTensor, |
There was a problem hiding this comment.
why colors tensor is void *?
There was a problem hiding this comment.
is it not black always?
There was a problem hiding this comment.
Followed similar parameter used in erase kernel for color tensor
* Fix log1p test suite upgrades for HIP * Updates for HOST Test Fixes * Fixes for box filter * Remove hardcoding of channel details * Update utilities/test_suite/rpp_test_suite_misc.h Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update utilities/test_suite/HIP/Tensor_misc_hip.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Srihari-mcw <srihari@multicorewareinc.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
|
@HazarathKumarM @RooseweltMcW ToT merge and Unified API changes to be reflected. |
…ut and updated grid and cutout dropout with unified API changes
r-abishek
left a comment
There was a problem hiding this comment.
@HazarathKumarM @RooseweltMcW Pls take a look.
| Rpp32u totalBoxes = srcDescPtr->n * boxesInEachImage; | ||
|
|
||
| RpptRoiLtrb *d_anchorBoxInfoTensor; | ||
| hipMalloc(&d_anchorBoxInfoTensor, totalBoxes * sizeof(RpptRoiLtrb)); |
There was a problem hiding this comment.
@HazarathKumarM Why do we have a hipMalloc here inside the kernel?
Can't use any of our pre-allocated hip buffer? Or the preallocated pinned memory?
There was a problem hiding this comment.
Modified and updated, Done.
|
@r-abishek Resolved review comments |
No description provided.