forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Flaky Test Higher Order Grad (apache#17325)
* failing seed * failed seed arcsin * use random_uniform_arrays to generate test arrays * use random_uniform_arrays for arccos * fix: handle case when len(s) == 0 * change lower and upper bounds of randomly generated array * failure case seed With this seed, one of the elements of head_grad for the first gradient is zero and leads to failure in `arctanh` due to the way it is implemented. * change gradient implementation of _backward_arctanh * remove seed * fix higher order gradient implementation for multiple trig operators * relax tolerance for tanh * address comments * add dtype argument. * consistent function signature. * concise list comprehension. * fix implementation for log1p * update function signature to be compatible with older python * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI * retrigger CI
- Loading branch information
1 parent
de30aa5
commit 71a5c9e
Showing
5 changed files
with
57 additions
and
25 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