[XLA:CPU] Fix test case for vectorized Exp and Tanh to actually vectorize
authorSanjoy Das <sanjoy@google.com>
Thu, 8 Feb 2018 00:48:45 +0000 (16:48 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 8 Feb 2018 00:52:42 +0000 (16:52 -0800)
commit0b32f622e581e28897b91d93f6fefb47bb21b061
tree1fde037d3917a37090977e5fbe96e980420e603f
parent7a5664f77f5c99bed6edf391c70bb9ea852e0c5e
[XLA:CPU] Fix test case for vectorized Exp and Tanh to actually vectorize

I just noticed that the test case for ArrayElementwiseOpTest::ExpF32sVector and
possibly for ArrayElementwiseOpTest::ExpF32sVector does not actually vectorize
the intrinsic calls.  This is most likely a very recent regression because I
remember fixing at least one issue in the emitter demonstrated by the test.
Despite that I think the current approach is better since we have unit tests
that check that we at least vectorize the vector-of-F32's case.

PiperOrigin-RevId: 184918373
tensorflow/compiler/xla/tests/array_elementwise_ops_test.cc