add optional torchgeo and torch dependencies, their platform requirem… #2
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.
Description
this adds optional dependencies for torch, torchvision, pytorch-triton, and torchgeo. It pins torchgeo and torch to recent prereleases so that we can test and be ready for upcoming torch 2.8 pt2 export and load apis.
Once torch 2.8 is released, we can then pin torch and torchgeo to stable versions in stac-model and make a new release of stac-model to allow for saving and loading pt2 archives with automatically filled in metadata stored in yaml
Related Issue
torchgeo/torchgeo#2880
Type of Change
Checklist
CONTRIBUTING.md
guide;make check
;Google
format for all the methods and classes that I used.