-
Notifications
You must be signed in to change notification settings - Fork 52
Allow tensors for graph constants. #830
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
Conversation
05fba84 to
a79b9c7
Compare
|
Thanks @inexorabletash and @huningxin! Addressed comments. |
cdd7279 to
5c83cc9
Compare
inexorabletash
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.
Overall LGTM, just some annoying nitpicks. I ran the lint tool locally over the PR to avoid surprises later.
5dae5e3 to
673ac96
Compare
|
(FYI - I enabled the CI workflow for this PR and all the tests passed, including the newly added lint rules from #831) |
673ac96 to
85010ec
Compare
inexorabletash
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! Thank you for your patience.
85010ec to
583efa1
Compare
fdwr
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.
👍
|
Thank you for the discussion here. I'm starting to come around to the idea of constness being just another property of an |
As noted in the issue, sharing weights between graphs is a effective way to enable reuse of device buffers, allowing web developers to manage weight data in graphs similarly to other input or output buffers. Resolves webmachinelearning#760
583efa1 to
18fb614
Compare
fdwr
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.
👍
inexorabletash
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.
One tiny nit
|
@fdwr Feel free to merge when ready. Thanks reviewers for the help. |
fdwr
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.
Looks fine to me. Deferring to Ningxin for final review, approval, and merging.
huningxin
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
As noted in the issue, sharing weights between graphs is a effective way to enable reuse of device buffers, allowing web developers to manage weight data in graphs similarly to other input or output buffers.
@fdwr @huningxin @reillyeon
Based on the work in Chromium by Austin Sullivan.
Resolves #760
Preview | Diff