diff options
author | Antonio Sanchez <cantonios@google.com> | 2020-05-28 10:41:28 -0700 |
---|---|---|
committer | Antonio Sánchez <cantonios@google.com> | 2020-06-11 17:26:56 +0000 |
commit | a7d2552af8b34f6befba9988c36fe5d9723892e6 (patch) | |
tree | 3ca16204e91819de1b8bdf0b9307081b3789de20 /unsupported/test | |
parent | 463ec866483806640c0a589afa427193a4599e8e (diff) |
Remove HasCast and fix packetmath cast tests.
The use of the `packet_traits<>::HasCast` field is currently inconsistent with
`type_casting_traits<>`, and is unused apart from within
`test/packetmath.cpp`. In addition, those packetmath cast tests do not
currently reflect how casts are performed in practice: they ignore the
`SrcCoeffRatio` and `TgtCoeffRatio` fields, assuming a 1:1 ratio.
Here we remove the unsed `HasCast`, and modify the packet cast tests to
better reflect their usage.
Diffstat (limited to 'unsupported/test')
-rw-r--r-- | unsupported/test/cxx11_tensor_morphing.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/unsupported/test/cxx11_tensor_morphing.cpp b/unsupported/test/cxx11_tensor_morphing.cpp index 59f4c34b3..e8c42a4cd 100644 --- a/unsupported/test/cxx11_tensor_morphing.cpp +++ b/unsupported/test/cxx11_tensor_morphing.cpp @@ -53,7 +53,6 @@ static void test_static_reshape() { Eigen::IndexList<type2index<2>, type2index<3>, type2index<7>> dim; Tensor<float, 3> reshaped = tensor.reshape(static_cast<Eigen::DSizes<ptrdiff_t,3>>(dim)); - for (int i = 0; i < 2; ++i) { for (int j = 0; j < 3; ++j) { for (int k = 0; k < 7; ++k) { |