Rework the sync async algorithms based on PR 323#329
Rework the sync async algorithms based on PR 323#329anssiko merged 3 commits intowebmachinelearning:mainfrom
Conversation
|
Looks like there are some changes due to auto-save: in some PRs before me, there were some trailing spaces. Please set your editors to remove trailing spaces. |
|
@huningxin @wchao1115 @anssiko PTAL |
|
I tried the the diff and preview, but they won't help much in reviewing these changes.
|
|
Still work in progress... I want to find a better way to express underlying graph execution / compute requests, it also overlaps with other algorithms (graph internal slots, operand internal slots etc.) |
|
@huningxin could you please check for correctness? |
…ing#329 Signed-off-by: Zoltan Kis <[email protected]>
Squashed the following commits: Enclose arg + return descriptions to separate from normative algorithms Change manual link to autolink Use the 'get a copy' reference for buffer source Factor our validating bufferview with descriptor Fix initialization typo Add reference to the platform operand object MLOperand/[[operand]] Lift dependency changes from webmachinelearning#337 Fix typos, remove unneeded dependencies from webmachinelearning#337 Add dependency for buffer validation from webmachinelearning#329 Fix the scalar algorithm / comments Discern between scalar and tensor constant, fix typos Fix review comments. Add stylistic boxes for algorithm steps, informal steps, internal slots Fix typo. Remove stylistic boxes for now. Address reviews comments. Remove MLOperandKind typedef from the IDL. Move note to text. Make the check on kind an assert. Remove the MLOperand/[[kind]] internal slot and creation parameter. Remove back quotes from title Signed-off-by: Zoltan Kis <[email protected]>
Squashed the following commits:
Enclose arg + return descriptions to separate from normative algorithms
Change manual link to autolink
Use the 'get a copy' reference for buffer source
Factor our validating bufferview with descriptor
Fix initialization typo
Add reference to the platform operand object MLOperand/[[operand]]
Lift dependency changes from webmachinelearning#337
Fix typos, remove unneeded dependencies from webmachinelearning#337
Add dependency for buffer validation from webmachinelearning#329
Fix the scalar algorithm / comments
Discern between scalar and tensor constant, fix typos
Fix review comments. Add stylistic boxes for algorithm steps, informal steps, internal slots
Fix typo. Remove stylistic boxes for now.
Address reviews comments. Remove MLOperandKind typedef from the IDL.
Move note to text. Make the check on kind an assert.
Remove the MLOperand/[[kind]] internal slot and creation parameter.
Remove back quotes from title
Signed-off-by: Zoltan Kis <[email protected]>
Squashed the following commits:
Enclose arg + return descriptions to separate from normative algorithms
Change manual link to autolink
Use the 'get a copy' reference for buffer source
Factor our validating bufferview with descriptor
Fix initialization typo
Add reference to the platform operand object MLOperand/[[operand]]
Lift dependency changes from webmachinelearning#337
Fix typos, remove unneeded dependencies from webmachinelearning#337
Add dependency for buffer validation from webmachinelearning#329
Fix the scalar algorithm / comments
Discern between scalar and tensor constant, fix typos
Fix review comments. Add stylistic boxes for algorithm steps, informal steps, internal slots
Fix typo. Remove stylistic boxes for now.
Address reviews comments. Remove MLOperandKind typedef from the IDL.
Move note to text. Make the check on kind an assert.
Remove the MLOperand/[[kind]] internal slot and creation parameter.
Remove back quotes from title
Signed-off-by: Zoltan Kis <[email protected]>
Squashed the following commits:
Enclose arg + return descriptions to separate from normative algorithms
Change manual link to autolink
Use the 'get a copy' reference for buffer source
Factor our validating bufferview with descriptor
Fix initialization typo
Add reference to the platform operand object MLOperand/[[operand]]
Lift dependency changes from #337
Fix typos, remove unneeded dependencies from #337
Add dependency for buffer validation from #329
Fix the scalar algorithm / comments
Discern between scalar and tensor constant, fix typos
Fix review comments. Add stylistic boxes for algorithm steps, informal steps, internal slots
Fix typo. Remove stylistic boxes for now.
Address reviews comments. Remove MLOperandKind typedef from the IDL.
Move note to text. Make the check on kind an assert.
Remove the MLOperand/[[kind]] internal slot and creation parameter.
Remove back quotes from title
Signed-off-by: Zoltan Kis <[email protected]>
…rning#323 Squashed from the following commits: Add link to asserts Clarify the graph execution steps Address review comments for graph execution Factor out buffer validation vs descriptor Remove note about execution Signed-off-by: Zoltan Kis <[email protected]>
bf7341a to
95c9bd1
Compare
|
@wchao1115 PTAL: this is editorial, but reformulates wording and factors out sub-steps. |
|
This would need to be merged, as needed in zk-conventions-integration, and only adds editorial changes to a previous PR. |
|
@zolkis Should we discard this PR in favor of merging the work into the staging branch? This is one of the oldests in the queue. |
|
This is quite different from that staging set of changes. Mainly editorial, factoring out some parts. This still belongs to the main branch IMHO. Technically it is possible to move there, but its value is in the main branch. |
|
@zolkis Can you help me understand why can't this change be staged in the staging branch like others? Given that it's been many months in the PR queue and still requires 1 more approval with several comments still outstanding, can we please move this out to the staging branch? |
I didn't say it can't be staged. I said it does not belong there. |
|
I marked the last remaining discussion as resolved. @wchao1115 would merging this to main now complicate your expected future changes? If it does, we can merge to the integration branch instead. This enhancement PR is a by-product of discussion in PR #323. I understand this context may have been lost because there were multiple now closed WIP PRs before this one. |
|
Right, if merging this conflicts too much with your upcoming PRs @wchao1115 , we can move this to staging, but let's try to merge it here. |
|
CI build fails with: @zolkis please check and fix. |
…to improve-sync-async-execution
Signed-off-by: Zoltan Kis <[email protected]>
|
@wchao1115 could you please check if you'd be fine merging this? It concerns @huningxin 's changes, has 2 approvals and it's editorial, factoring out common parts and making the algorithms more compact. It doesn't strictly belong to the kind of changes in conventions integration, and it's been discussed several times in calls. Is there something left undone? Or do you sustain this should be discarded and include the changes in the conventions integration? |
Yes, I approved. |
|
Thanks @wchao1115 for your review. I'll squash and merge so that @zolkis can pull these changes into his integration branch. |
SHA: 8e63e07 Reason: push, by anssiko Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Factor out graph input/output validation.
Factor out graph execution algorithm.
Used them in the sync and async algorithm steps.
Preview | Diff