-
Notifications
You must be signed in to change notification settings - Fork 82
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
[Tensor] Fix improper vector initialization in Tensor::split function #2901
Conversation
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.
While this suggestion itself sounds good, it seems this won't fix #2900..
0ea4b37
to
a7a8b9c
Compare
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.
LGTM!
0b0144f
to
c2b64f3
Compare
This pull request addresses the issue of improper vector initialization that leads to an error in the Tensor::split function. Previously, the vector was reserved but accessed directly without inserting any elements. Reserving memory only allocates space internally, leaving the vector uninitialized. **Changes proposed in this PR:** - Initialize the vector using the constructor that takes count copies of elements. - Properly initialize tensors when they are added to a vector of tensors. **Self-evaluation:** 1. Build test: [X]Passed [ ]Failed [ ]Skipped 2. Run test: [X]Passed [ ]Failed [ ]Skipped Signed-off-by: Donghyeon Jeong <dhyeon.jeong@samsung.com>
c2b64f3
to
5d5e89e
Compare
Thanks for your hard work to fix it ! 👍 |
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.
LGTM
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.
LGTM
This pull request addresses the issue of improper vector initialization that leads to an error in the
Tensor::split
function. Previously, the vector was reserved but accessed directly without inserting any elements. Reserving memory only allocates space internally, leaving the vector uninitialized.Changes proposed in this PR:
Self-evaluation: