-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Add erfinv operator for calculating inverse error function #13811
Conversation
This reverts commit 64e9f1a.
@mxnet-label-bot add [pr-awaiting-review] |
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.
Coud you add this file to /~https://github.com/apache/incubator-mxnet/blob/master/tests/nightly/apache_rat_license_check/rat-excludes to pass license check?
@eric-haibin-lin the unix gpu failed on a dropout_perf test. Have you even seen it before? I am a bit struggling to find the root cause of it. |
The failure does not seem related. I've triggered the test again to see if it passes this time |
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.
Looks good pending one minor comment
) * add default behaviour for argmax * prototype of erfvin * add test * gpu support * Revert "add default behaviour for argmax" This reverts commit 64e9f1a. * move erfinv to contrib * edit copyright * remove atof * use std and update license * add license exclude file * fix per eric's comments * change license header
) * add default behaviour for argmax * prototype of erfvin * add test * gpu support * Revert "add default behaviour for argmax" This reverts commit 64e9f1a. * move erfinv to contrib * edit copyright * remove atof * use std and update license * add license exclude file * fix per eric's comments * change license header
@rondogency Could you take a look at those warnings introduced by this PR? If possible we need get rid of them.
|
) * add default behaviour for argmax * prototype of erfvin * add test * gpu support * Revert "add default behaviour for argmax" This reverts commit 64e9f1a. * move erfinv to contrib * edit copyright * remove atof * use std and update license * add license exclude file * fix per eric's comments * change license header
/* | ||
* Copyright (c) 2014 Indiana University | ||
* All rights reserved. | ||
* Written by Prof. Gary L. Pavlis, Dept. of Geol. Sci., | ||
* Indiana University, Bloomington, IN | ||
* This software is licensed under the New BSD license: | ||
* Redistribution and use in source and binary forms, | ||
* with or without modification, are permitted provided | ||
* that the following conditions are met: | ||
* Redistributions of source code must retain the above | ||
* copyright notice, this list of conditions and the | ||
* following disclaimer. | ||
* Redistributions in binary form must reproduce the | ||
* above copyright notice, this list of conditions and | ||
* the following disclaimer in the documentation and/or | ||
* other materials provided with the distribution. | ||
* Neither the name of Indiana University nor | ||
* the names of its contributors may be used to endorse | ||
* or promote products derived from this software without | ||
* specific prior written permission. | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND | ||
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED | ||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | ||
* THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY | ||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER | ||
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
/* | ||
* The next function is taken from | ||
* /~https://github.com/antelopeusersgroup/antelope_contrib/blob/master/lib/location/libgenloc/erfinv.c. | ||
* Output was modified to be inf or -inf when input is 1 or -1. | ||
*/ |
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.
@rondogency do you remember where this license came from?
Description
Add erfinv math operator. This is an extension of the previous error function implementation #13229.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
None
Comments
None