mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-23 18:20:47 +08:00
Fixed compilation warning
This commit is contained in:
parent
31afdcb4c2
commit
58a6453d48
@ -208,7 +208,7 @@ static void test_argmax_dim()
|
||||
|
||||
VERIFY_IS_EQUAL(tensor_argmax.size(),
|
||||
ptrdiff_t(2*3*5*7 / tensor.dimension(dim)));
|
||||
for (size_t n = 0; n < tensor_argmax.dimensions().TotalSize(); ++n) {
|
||||
for (ptrdiff_t n = 0; n < tensor_argmax.dimensions().TotalSize(); ++n) {
|
||||
// Expect max to be in the last index of the reduced dimension
|
||||
VERIFY_IS_EQUAL(tensor_argmax.data()[n], tensor.dimension(dim) - 1);
|
||||
}
|
||||
@ -266,7 +266,7 @@ static void test_argmin_dim()
|
||||
|
||||
VERIFY_IS_EQUAL(tensor_argmin.size(),
|
||||
ptrdiff_t(2*3*5*7 / tensor.dimension(dim)));
|
||||
for (size_t n = 0; n < tensor_argmin.dimensions().TotalSize(); ++n) {
|
||||
for (ptrdiff_t n = 0; n < tensor_argmin.dimensions().TotalSize(); ++n) {
|
||||
// Expect min to be in the last index of the reduced dimension
|
||||
VERIFY_IS_EQUAL(tensor_argmin.data()[n], tensor.dimension(dim) - 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user