| Commit message (Collapse) | Author | Age |
|\
| |
| |
| | |
PiperOrigin-RevId: 215981773
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
logits that are -inf will be given 0 probability and logits that are
inf will result in a nan output. Likewise if all logits are -inf the
output will also be nan.
This is done by using where operators, mostly because 0 * inf = nan
and x/0 = sign(x) inf following the IEEE 754 standard. However these
results are not mathematically correct in the context of the sparsemax
algorithm.
Fixes: https://github.com/tensorflow/tensorflow/issues/15564
|
|
|
|
|
|
| |
avoid flaky timeouts
PiperOrigin-RevId: 196004443
|
|
|
|
| |
PiperOrigin-RevId: 192850372
|
|
|
|
| |
PiperOrigin-RevId: 190878279
|
|
|
|
|
|
| |
pylint errors.
PiperOrigin-RevId: 184790548
|
|
|
|
| |
PiperOrigin-RevId: 183270896
|
|
|
|
| |
PiperOrigin-RevId: 159673079
|
|
|
|
| |
PiperOrigin-RevId: 155709893
|
|
|
|
| |
Change: 147897309
|
|
|
|
| |
Change: 146941104
|
|
Change: 146918929
|