-
Notifications
You must be signed in to change notification settings - Fork 300
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
TypeTransformers for PyTorch Tensor, Module, and Checkpoint #1032
Merged
Merged
Changes from 2 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
4974353
TypeTransformers for PyTorch Tensor and Module
samhita-alla fa5e3ae
add torch to requirements
samhita-alla 6d8f977
add module as a native type and PyTorchCheckpoint
samhita-alla 3560adf
resolve merge conflict
samhita-alla bf61ef7
update requirements
samhita-alla f4b8704
resolve merge conflict
samhita-alla 7b9218f
procedural to OOP approach
samhita-alla 6332364
nit
samhita-alla 9f098ba
verify device conversion
samhita-alla b8111a6
verify device conversion
samhita-alla 13fd0f7
hyperparameters can be None
samhita-alla 7b299f4
device conversion
samhita-alla 4ef601c
device conversion
samhita-alla c8d5478
checkpoint code cleanup
samhita-alla b644a2e
resolve merge conflict
samhita-alla 88a6ce1
move pytorch from types to extra; resolve merge conflict
samhita-alla 6915913
fix pytorch api reference; resolve merge conflict
samhita-alla 6ce6e19
fix pytorch import
samhita-alla a48472a
fix merge conflict
samhita-alla 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ codespell | |
google-cloud-bigquery | ||
google-cloud-bigquery-storage | ||
IPython | ||
torch |
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,4 @@ papermill # papermill | |
jupyter # papermill | ||
pyspark # spark | ||
sqlalchemy # sqlalchemy | ||
torch # pytorch |
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. automodule:: flytekit.types.pytorch | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
""" | ||
Flytekit Numpy | ||
============== | ||
.. currentmodule:: flytekit.types.numpy | ||
.. autosummary:: | ||
:template: custom.rst | ||
:toctree: generated/ | ||
NumpyArrayTransformer | ||
""" | ||
|
||
from .ndarray import NumpyArrayTransformer |
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.
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.
is removing this from docs intentional?
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.
Yeah. I don't think we'd want to have Transformer in the API reference cause the methods within the TypeTransformer class remain the same.