Open
Conversation
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]> Co-authored-by: Kamil Tokarski <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
…st iteration. (NVIDIA#6264) Signed-off-by: Michał Zientkiewicz <[email protected]>
- switch form launchpad API to ppa as it sometimes can be blocked Signed-off-by: Janusz Lisiecki <[email protected]>
…hreadPool per device. (NVIDIA#6254) * Use NewThreadPool in dynamic mode. * By default use only one instance of ThreadPool per device. * Add thread_pool argument to EvalContext constructor. Signed-off-by: Michal Zientkiewicz <[email protected]>
…IA#6268) - Replace deprecated trusted=yes with proper GPG keyring for the deadsnakes PPA Signed-off-by: Janusz Lisiecki <[email protected]>
- arg_helper_test.cc: pass local TensorListShape<0> variables via std::move() into SetupData() since they are not used after the call (CIDs 25217386, 25217389, 25217390, 26094597) - arg_helper_test.cc: use `const auto &` instead of `auto` when binding the return value of arg.get() (which returns const TLV&) to avoid unnecessary copies (CIDs 25217387, 25217388, 25217391) - roi_image_decoder.h: pass `shape` parameter via std::move() into RoiFromCropWindowGenerator() in all three GetRoi() overrides (WithCropAttr, WithSliceAttr, WithRandomCropAttr), since shape is not used after the call (CIDs 25217545, 25217546, 25217547) - thread_pool_base.h: add explicit noexcept to ~ThreadPoolBase() and ~TaskBulkAdd() to document intent that exceptions cause termination (CIDs 25783968, 25783975) - workspace_policy.h: add explicit noexcept to ~AOT_WS_Policy() to document intent that exceptions cause termination (CID 26095288) - thread_pool_base.cc: fix lock order reversal in WaitOrRunTasks() and Run() - release mtx_ before acquiring sem_ to maintain consistent order (sem_ before mtx_) matching all other acquisition sites, eliminating potential for ORDER_REVERSAL deadlock (CID 25783972) - new_thread_pool.cc: pass `name` parameter via std::move() into name_ member initializer since it is not used after the call (CID 26190478) Signed-off-by: Janusz Lisiecki <[email protected]> Signed-off-by: Michał Zientkiewicz <[email protected]> Co-authored-by: Michał Zientkiewicz <[email protected]>
…NVIDIA#6270) * Add quiet argument to RandomBBoxCrop to suppress crop failure warning When using mosaic augmentation or other pipelines where failing to find a valid crop window is expected, the repeated warning at bbox_crop.cc:794 is noisy and misleading. The new quiet=True argument suppresses it. Fixes NVIDIA#5695. * Add test for quiet=True suppressing crop failure warning
The fallback to the legacy CropMirrorNormalize implementation is the correct and intended path for video (4D) tensors and other non-2D-image inputs, since the optimized kernels only support 3D HWC/CHW tensors. The warning incorrectly implied something was wrong. Fixes NVIDIA#6267.
Center crop operators implementation Signed-off-by: Marek Dabek <[email protected]> Co-authored-by: Kamil Tokarski <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
71f53ca to
0c38e81
Compare
Collaborator
Author
|
@greptileai please review |
Collaborator
Author
|
!build |
Collaborator
|
CI MESSAGE: [46880686]: BUILD STARTED |
Contributor
Greptile SummaryThis PR adds
Confidence Score: 3/5
Important Files Changed
Class Diagram%%{init: {'theme': 'neutral'}}%%
classDiagram
class Operator {
+arg_rules: list
+preprocess_data
+device: str
+__call__(data_input)
+_kernel(data_input)*
+verify_args(**kwargs)
}
class _PadBase {
+border_type: str
+pad_left: int
+pad_top: int
+pad_right: int
+pad_bottom: int
+fill
+get_padding(padding)$
+_kernel(data_input)
}
class PadConstant {
+border_type = "pad"
}
class PadEdge {
+border_type = "clamp"
}
class PadReflect {
+border_type = "reflect_101"
}
class PadSymmetric {
+border_type = "reflect_1001"
}
class Pad {
+pad: _PadBase
+__init__(padding, fill, padding_mode, device)
+__call__(data_input)
}
class GaussianBlur {
+kernel_size
+sigma
+_kernel(data_input)
}
class ColorJitter {
+brightness
+contrast
+saturation
+hue
+_kernel(data_input)
}
class Grayscale {
+num_output_channels: int
+_kernel(data_input)
}
Operator <|-- _PadBase
_PadBase <|-- PadConstant
_PadBase <|-- PadEdge
_PadBase <|-- PadReflect
_PadBase <|-- PadSymmetric
Pad o-- _PadBase : delegates to
Operator <|-- GaussianBlur
Operator <|-- ColorJitter
Operator <|-- Grayscale
Reviews (4): Last reviewed commit: "Review fixes" | Re-trigger Greptile |
Collaborator
|
CI MESSAGE: [46880686]: BUILD PASSED |
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
Signed-off-by: Marek Dabek <[email protected]>
0c38e81 to
d6f47fc
Compare
Collaborator
Author
|
@greptileai please re-review |
d6f47fc to
9f1e43b
Compare
Signed-off-by: Marek Dabek <[email protected]>
9f1e43b to
d9dee09
Compare
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.
Category:
New feature
Description:
Torchvision pad operator implementation
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A