Add ONNX GraphSurgeon transformer block surgery example#4753
Draft
KOKOSde wants to merge 1 commit intoNVIDIA:mainfrom
Draft
Add ONNX GraphSurgeon transformer block surgery example#4753KOKOSde wants to merge 1 commit intoNVIDIA:mainfrom
KOKOSde wants to merge 1 commit intoNVIDIA:mainfrom
Conversation
Signed-off-by: Fahad Alghanim <163377666+KOKOSde@users.noreply.github.com>
11a0c49 to
2841ccd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
python3 -m py_compile tools/onnx-graphsurgeon/examples/13_transformer_block_surgery/generate.py tools/onnx-graphsurgeon/examples/13_transformer_block_surgery/surgeon.py tools/onnx-graphsurgeon/tests/test_examples.pygit diff --checkmodel.onnx, ransurgeon.py, checked both ONNX models, and ran CPU inference on both outputsNote:
pytest tools/onnx-graphsurgeon/tests/test_examples.py -k 13_transformer_block_surgerycould not be run directly in this local checkout because the test harness invokes barepython3and the system Python is externally managed without ONNX installed. The README commands were validated manually in a virtualenv using the local ONNX GraphSurgeon source viaPYTHONPATH.