-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix fn.coord_transform handling of a default matrix in variable batch case #3958
Conversation
!build |
CI MESSAGE: [5005840]: BUILD STARTED |
CI MESSAGE: [5005840]: BUILD PASSED |
Repeat(per_sample_mtx_, mtx_, N); | ||
if (is_fused) { | ||
translation_.resize(output_pt_dim_, 0); | ||
Repeat(per_sample_translation_, translation_, N); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this always be zero-filled?
Repeat(per_sample_translation_, translation_, N); | |
per_sample_translation_.resize(N * output_pt_dim_, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Signed-off-by: Kamil Tokarski <[email protected]>
Signed-off-by: Kamil Tokarski <[email protected]>
49e7eb8
to
b5917dc
Compare
!build |
CI MESSAGE: [5111952]: BUILD STARTED |
CI MESSAGE: [5111952]: BUILD FAILED |
CI MESSAGE: [5111952]: BUILD PASSED |
Signed-off-by: Kamil Tokarski [email protected]
Category:
Bug fix (non-breaking change which fixes an issue)
Description:
If M is not specified, its value is assumed to be id matrix and it is repeated as a per-sample arg to match the current batch size. However, if the dimensionality of data does not change, it is done only once, so if the batch size increases in the following iterations, the matrix is read out of vector bounds.
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: DALI-2816