-
Notifications
You must be signed in to change notification settings - Fork 39
Overhaul pt2ts
#555
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
Merged
Merged
Overhaul pt2ts
#555
Changes from 35 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
92d6b04
Make pt2ts runnable
joewallwork 006159d
Rename as ftorch_utils and update README
joewallwork 5d57e4d
Separate TorchScript utils into a module
joewallwork 71a8095
Don't accept .ts; convert some errors to warnings
joewallwork ff93349
Implement load_pytorch_model
joewallwork ea33c64
Use load_pytorch in pt2ts.py
joewallwork 0aacac2
Move to pyproject.toml
joewallwork 38767df
Install pt2ts into the Python environment
joewallwork 6e775a0
Install ftorch_utils in CI workflows
joewallwork 93afbee
Use torchscript module in examples
joewallwork b194aa8
DO NOT MERGE: drop workflow changes other than Ubuntu/GNU for now
joewallwork aba9e1a
Allow existing build dir
joewallwork 1f3398e
Need to activate venv before installing
joewallwork e8ea1d4
Fix handling of tracing mode
joewallwork 924c41b
Allow writing model and input tensor in simplenet.py
joewallwork 9a08442
Enable testing in pt2ts
joewallwork a3bf887
Use pt2ts script in SimpleNet example
joewallwork 4f4331a
Fix typo
joewallwork 8d3eedd
TODO: Accept pre-trained models - see ResNet in git stash
joewallwork a7f0a2d
Use pt2ts script in Batching example
joewallwork c7c849f
assert_allclose->allclose
joewallwork b0378fd
Use pt2ts script in MultiIO example
joewallwork 970e499
Account for multiple input tensors in pt2ts script
joewallwork 0db05b3
Drop pt2ts.py from looping example
joewallwork 39c0d1c
Account for single tensor inputs, too
joewallwork 669375f
Introduce functions for subtasks of pt2ts
joewallwork c14278e
Merge branch 'main' into 368_rework-pt2ts
joewallwork f8626b7
Changelog
joewallwork d08e932
Fix pt2ts
joewallwork 54a37d5
Use pt2ts script in MPI example
joewallwork 996a4ee
Use pt2ts script in MultiGPU example
joewallwork 73b13f5
Consistent import strategy for argparse
joewallwork 8c85ee9
Lint
joewallwork 30c0aef
Update example READMEs
joewallwork 6263802
Update mention of pt2ts script in the docs
joewallwork 268bd7a
Apply suggestions from @jatkinson1000 code review
joewallwork fecde80
Fix build dir issue in static analysis workflow
joewallwork 2b10d54
Ruff lint
joewallwork 375a226
Add CHANGELOG note on changed process for saving models
joewallwork 4deee2e
Update ftorch_utils README
joewallwork 166572c
Adopt ftorch-utils and update description
joewallwork 224990f
Update authors and maintainers
joewallwork 7136b85
Undo line length change
joewallwork f2807ef
Update generic example in docs
joewallwork bda9405
Refer to pt2ts docs from gpu docs
joewallwork 70632ab
Add torch to pyproject dependencies
joewallwork a24f218
Improve clarity of GPU device docs
joewallwork 06655cf
Add note on ResNet example
joewallwork 444f047
Convert matching filename warning to error
joewallwork 2009946
Add missing option to README
joewallwork e9cb60b
Rename ResNet old-style pt2ts to write_torchscript
joewallwork fcdbbb4
Use better naming scheme for PyTorch and TorchScript model files
joewallwork 3767fe9
Tweak pt2ts arguments and update examples
joewallwork f1f6f06
Save example models in binary dirs
joewallwork f5eb59e
Add numpy and torchvision to core dependencies
joewallwork 2d4747a
Use --extra-index-url and mention in docs
joewallwork 52666ac
More places where mkdir -p is needed
joewallwork aa2479c
Don't use --extra-index-url on Windows
joewallwork 788b824
Fix example regexes in Windows CI
joewallwork 0377431
Fix Windows CI: pass venv Python executable to CMake (#566)
Copilot 7944250
Update ftorch_utils/README to reflect changes to pt2ts arguments
joewallwork 5247ad8
Merge branch 'main' into 368_rework-pt2ts
joewallwork dd7249e
Add matplotlib to dependencies for ftorch_utils
joewallwork f3ad2e2
Apply suggestions from @jatkinson1000 code review
joewallwork be09700
Apply ruff format
joewallwork b1b342a
Add clarifying note on installing torch and torchvision
joewallwork c0d258f
Improve docs on installing dependencies on GPU devices
joewallwork 313c902
Drop file accidentally added in merge
joewallwork 9267d26
Fix code snippet in MultiGPU README
joewallwork cb3a26f
Add release checklist step for updating ftorch_utils version
joewallwork 06818b4
Merge branch 'main' into 368_rework-pt2ts
joewallwork 2634080
Apply suggestions from @jatkinson1000 code review
joewallwork 8c380ec
Move to dependency groups approach for `pip install`s (#570)
joewallwork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.