Disable NaN-related cases w.r.t. different glibc versions. It looks like that CPU and GPU glibc may diverge because of some behavioral changes between different versions.

PiperOrigin-RevId: 331678724
Change-Id: Ida0cb741fdec08089f6c6cf90d788f5b0bdf06a2
This commit is contained in:
Tim Shen 2020-09-14 19:07:43 -07:00 committed by TensorFlower Gardener
parent 888826695e
commit c56af7e249
2 changed files with 12 additions and 0 deletions

View File

@ -114,6 +114,10 @@ BINARY_TEST_FLOAT_32(Min, {
//
// TODO(bixia): Need to investigate the failure on CPU and file bugs.
BINARY_TEST_FLOAT_32(DISABLED_ON_CPU(AbsComplex), {
// TODO(timshen): see b/162664705.
known_incorrect_fn_ = [this](int64 val) {
return std::isnan(this->ConvertValue(val));
};
auto host_abs_complex = [](float x, float y) {
return std::abs(std::complex<float>(x, y));
};
@ -198,6 +202,10 @@ BINARY_TEST_FLOAT_64(Min, {
// TODO(bixia): Need to investigate the failure on CPU and file bugs.
BINARY_TEST_FLOAT_64(DISABLED_ON_CPU(AbsComplex), {
// TODO(timshen): see b/162664705.
known_incorrect_fn_ = [this](int64 val) {
return std::isnan(this->ConvertValue(val));
};
auto host_abs_complex = [](double x, double y) {
return std::abs(std::complex<double>(x, y));
};

View File

@ -97,6 +97,10 @@ using ExhaustiveC128UnaryTest = ExhaustiveComplexUnaryTestBase<C128>;
// TODO(b/138578594): Enable the test for the CPU backend after fixing the bug.
UNARY_TEST_COMPLEX_64(DISABLED_ON_CPU(Log), {
// TODO(timshen): see b/162664705.
known_incorrect_fn_ = [this](int64 val) {
return std::isnan(this->ConvertValue(val));
};
Run(Log, [](complex64 x) { return std::log<float>(x); });
})