-
Notifications
You must be signed in to change notification settings - Fork 106
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
PyTorch Softmax Ops #846
Merged
Merged
PyTorch Softmax Ops #846
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
27e2526
Add pytorch support for some basic Ops
HarshvirSandhu 629d00b
update variable names, docstrings
HarshvirSandhu 3eceb56
Avoid numpy conversion of torch Tensors
HarshvirSandhu 3cde964
Fix typify and CheckAndRaise
HarshvirSandhu c003aa5
Fix Elemwise Ops
HarshvirSandhu 8dc406e
Fix Scalar Ops
HarshvirSandhu a8f6ddb
Fix ruff-format
HarshvirSandhu 9d535f5
Initial setup for pytorch tests
HarshvirSandhu c5600da
Fix mode parameters for pytorch
HarshvirSandhu 54b6248
Prevent conversion of scalars to numpy
HarshvirSandhu 19454b3
Update TensorConstantSignature and map dtypes to Tensor types
HarshvirSandhu 92d7114
Add tests for basic ops
HarshvirSandhu 5aae0e5
Remove torch from user facing API
HarshvirSandhu 8c174dd
Add function to convert numpy arrays to pytorch tensors
HarshvirSandhu 0977c3a
Avoid copy when converting to tensor
HarshvirSandhu 1c23825
Fix tests
HarshvirSandhu c9195a8
Remove dispatches that are not tested
HarshvirSandhu b07805c
set path for pytorch tests
HarshvirSandhu 9e8d3fc
Remove tensorflow probability from yml
HarshvirSandhu a2d3afa
Add checks for runtime broadcasting
HarshvirSandhu a577a80
Remove IfElse
HarshvirSandhu 499a174
Remove dev notebook
HarshvirSandhu 2826613
Fix check and raise
HarshvirSandhu 62ffcec
Fix compare_pytorch_and_py
HarshvirSandhu acdbba1
Fix DimShuffle
HarshvirSandhu 2519c65
Add tests for Elemwise operations
HarshvirSandhu eb6d5c2
Fix test for CheckAndRaise
HarshvirSandhu 9f02a4f
Remove duplicate function
HarshvirSandhu caf2965
Remove device from pytorch_typify
HarshvirSandhu bf87eb9
Merge branch 'main' of https://github.com/HarshvirSandhu/pytensor int…
HarshvirSandhu 2c27683
Solve merge conflict
HarshvirSandhu c603c6b
Use micromamba for pytorch install
HarshvirSandhu 3f17107
Fix pytorch linker
HarshvirSandhu e850d8d
Fix typify and deepcopy
HarshvirSandhu e682fc4
Parametrize device in all tests
HarshvirSandhu bf4cf92
Install torch with cuda
HarshvirSandhu 899e7f9
Fix test_pytorch_FunctionGraph_once
HarshvirSandhu 04d2935
Remove device argument from test
HarshvirSandhu 8ec7661
remove device from elemwise tests and add assertions
HarshvirSandhu bb7df41
skip tests if cuda is not available
HarshvirSandhu 0441cf2
Fix tests
HarshvirSandhu 85f2742
Merge branch 'main' of https://github.com/pymc-devs/pytensor into pyt…
HAKSOAT 4ca5aca
Implemented softmax ops for PyTorch
HAKSOAT b9aca57
Merge remote-tracking branch 'upstream/main' into pytensor-pytorch-so…
HAKSOAT 287d9c2
Switched to run softmax on all items if axis is None
HAKSOAT f42e2a0
Implemented log softmax
HAKSOAT 35b17e0
Implemented softmaxgrad
HAKSOAT 5efc3c8
Added checks and error raises for nonfloat inputs
HAKSOAT 16e415a
Added checks and error raises for nonfloat inputs
HAKSOAT ffbc594
Merge branch 'pytensor-pytorch-softmax' of https://github.com/HAKSOAT…
HAKSOAT b4cdce0
Merge branch 'main' of https://github.com/pymc-devs/pytensor into pyt…
HAKSOAT 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
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
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.
This change is because of this error: #827