-
Notifications
You must be signed in to change notification settings - Fork 618
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 two bugs: #1714
Fix two bugs: #1714
Conversation
1. Buffer linkage - in debug builds, the static fields require external linkage (and explicit instantiation). 2. Reshape - the tensors inside were reshaped, but the tensor list was not. Fixed now, using native TensorVector::Resize. Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
!build |
CI MESSAGE: [1108498]: BUILD STARTED |
CI MESSAGE: [1108498]: BUILD PASSED |
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.
Looks OK, although I don't like the fact, that growth_factor
and shrink_thresh
are not private and have accessors (get and set). I'd make them private or remove the accessors. If you don't mind running CI again, you could change it
But they are protected as any other important member of |
Accessors are indispensable - they are used in Python backend and in library initialization. As for making them private - that would be inconsistent with the rest of the Buffer class, and I don't think it's worth to move members between visibility levels when it doesn't really change anything. Maybe when/if we decide to revisit tensorlist/vector again (which we should), it will be time to think about refactoring buffer, too. |
Signed-off-by: Michal Zientkiewicz michalz@nvidia.com
Why we need this PR?
Pick one, remove the rest
What happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
?
N/A
JIRA TASK: N/A