-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fix rules for ^
#513
Merged
Merged
Fix rules for ^
#513
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
415c8fb
fix some issues with rules for `^`
simeonschaub 35e1a6b
fixup literal_pow, plus tests
mcabbott 879ff8b
fixup power, and skip many tests
mcabbott 46e5e9c
unrelated test fixes in passing
mcabbott f0731dc
Revert "unrelated test fixes in passing"
mcabbott b69174e
tests, many broken
mcabbott 504e8dc
go back to division
mcabbott 95dfb23
tidy up
mcabbott 8405b68
change the p grad
mcabbott 29b0839
make real tests
mcabbott 8c718df
allow integer x
mcabbott 1b389c0
tidy, rm some comments
mcabbott 48a9d14
mostly delete literal_pow
mcabbott 936cb21
tidy
mcabbott 1fe125e
tidy
mcabbott 40174cd
test bug
mcabbott 1c08573
inline + indents
mcabbott 7b70923
fix frule
mcabbott c4540b3
restore error + bump
mcabbott 47e2181
move the log inside the thunk
mcabbott 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
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
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.
I thought there should be
NoTangent()
which we could normalize to0
for performance reason.Since if you can't really the perturb the input about that point.
Why is
NaN
better?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.
I thought I persuaded myself these were indeterminate, hence made them like 0/0. But I'm not super-sure, sometimes I also think they are a particular sign of Inf.
In some way
NaN
is a safe answer, as it guarantees that nobody will be relying on a particular possibly wrong choice.