-
Notifications
You must be signed in to change notification settings - Fork 2k
[webgpu] Add unpack #4789
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
[webgpu] Add unpack #4789
Conversation
|
@gyagp @qjia7 @haoyunfeix @xhcao PTAL. |
| toDispose.push(sliced); | ||
| } | ||
|
|
||
| toDispose.forEach(t => backend.disposeData(t)); |
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.
backend.disposeData(t.dataId)
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.
I just found in the Pack implementation. You also used backend.disposeData(t) not backend.disposeData(t.dataId). Please change that part too. Otherwise, it may result memory leak.
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.
Great catch! Thanks Jiajia, updated, PTAL
FEATURE
qjia7
left a comment
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.
@lina128 takes another look. Thanks.
lina128
left a comment
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
Reviewable status:
complete! 2 of 1 approvals obtained (waiting on @qjia7)
FEATURE
This change is