This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1495 - Testcase test_minmax_nan_propagation from unsupported/test/cxx11_tensor_expr fails on Power
Summary: Testcase test_minmax_nan_propagation from unsupported/test/cxx11_tensor_expr ...
Status: RESOLVED DUPLICATE of bug 1494
Alias: None
Product: Eigen
Classification: Unclassified
Component: Tensor (show other bugs)
Version: 3.3 (current stable)
Hardware: PPC - AltiVec Linux
: Normal Failed Unit Test
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-01 08:14 UTC by Nishidha Panpaliya
Modified: 2019-12-04 17:20 UTC (History)
3 users (show)



Attachments

Description Nishidha Panpaliya 2018-01-01 08:14:06 UTC
Testcase test_minmax_nan_propagation from unsupported/test/cxx11_tensor_expr fails on Power (ppc64le Linux) with following error -

[root@4614895ff275 test]# ./cxx11_tensor_expr
Initializing random number generator with seed 1514789803
Repeating each test 10 times
For tensor of size: 1 NaN compared to 0 outputs:
nan

For tensor of size: 2 NaN compared to 0 outputs:
nan     nan

For tensor of size: 3 NaN compared to 0 outputs:
nan     nan     nan

For tensor of size: 4 NaN compared to 0 outputs:
0
Test test_minmax_nan_propagation() failed in /root/.cache/bazel/_bazel_root/7d6c9d3c54087a4af55f3ebce8d864ef/external/eigen_archive/unsupported/test/cxx11_tensor_expr.cpp (320)
    (numext::isnan)(vec_res(i))

For tensors of size 1, 2 and 3 containing NaNs, when compared to zero returns nan as expected. However when the size of tensor starts increasing after 3, it starts giving zero. This behavior is weird. On x86, it consistently returns NaN for any sized tensor. 
This functionality although marked as unsupported on Eigen but is used by tensorflow and is covered by tensorflow's test case for Relu operator (which uses maximum operator). 
I found an existing merged PR of Eigen addressing this issue on x86 http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1373. Referring that I tried making similar change in Altivec related PacketMath.h but no luck. 
In context of tensorflow, there is an issue logged for tensorflow's test case https://github.com/tensorflow/tensorflow/issues/11603 where I've put my findings about vec_max function on PPC and its behavior. 
Could anyone please provide me some pointers on this?
Comment 1 Gael Guennebaud 2018-01-04 17:03:21 UTC

*** This bug has been marked as a duplicate of bug 1494 ***
Comment 2 Nobody 2019-12-04 17:20:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1495.

Note You need to log in before you can comment on or make changes to this bug.