Skip to content
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

Merged
merged 2 commits into from
Jun 20, 2022

Conversation

stiepan
Copy link
Member

@stiepan stiepan commented Jun 3, 2022

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:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: DALI-2816

@stiepan
Copy link
Member Author

stiepan commented Jun 3, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5005840]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5005840]: BUILD PASSED

@stiepan stiepan requested a review from szalpal June 13, 2022 10:32
Repeat(per_sample_mtx_, mtx_, N);
if (is_fused) {
translation_.resize(output_pt_dim_, 0);
Repeat(per_sample_translation_, translation_, N);
Copy link
Contributor

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?

Suggested change
Repeat(per_sample_translation_, translation_, N);
per_sample_translation_.resize(N * output_pt_dim_, 0);

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@stiepan stiepan force-pushed the fix_vb_coord_trans branch from 49e7eb8 to b5917dc Compare June 17, 2022 14:30
@stiepan
Copy link
Member Author

stiepan commented Jun 17, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5111952]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5111952]: BUILD FAILED

@stiepan stiepan mentioned this pull request Jun 17, 2022
18 tasks
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5111952]: BUILD PASSED

@stiepan stiepan merged commit 9c519c6 into NVIDIA:main Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants