forked from flashlight/flashlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add isinf and sign tensor functions (flashlight#703)
Summary: Pull Request resolved: flashlight#703 Modeled after [`isnan`](https://numpy.org/doc/stable/reference/generated/numpy.isnan.html) - add [`isinf`](https://numpy.org/doc/stable/reference/generated/numpy.isinf.html) - can change naming if others feel strongly. Adds [`sign`](https://numpy.org/doc/stable/reference/generated/numpy.sign.html) which differs from [ArrayFire's](https://arrayfire.org/docs/group__arith__func__sign.htm) and requires an additional step to zero relevant indices. Reviewed By: benoitsteiner Differential Revision: D30022375 fbshipit-source-id: 562de5a36d7c71196f2a7663adaff7a8b50de440
- Loading branch information
1 parent
839da54
commit 9acaa3c
Showing
6 changed files
with
62 additions
and
0 deletions.
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
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