Fix bad index type for Eigen::DSizes.
PiperOrigin-RevId: 275398984 Change-Id: I854e234e34ac26734d385353d1e3999d2665547d
This commit is contained in:
parent
1d74adf892
commit
be536832d9
@ -67,7 +67,7 @@ class LRNFloatTest : public OpsTestBase {
|
|||||||
|
|
||||||
Eigen::Tensor<float, 4, Eigen::RowMajor> expected(batch_size, rows, cols,
|
Eigen::Tensor<float, 4, Eigen::RowMajor> expected(batch_size, rows, cols,
|
||||||
depth);
|
depth);
|
||||||
auto out = expected.reshape(Eigen::DSizes<int64, 2>{rest, depth});
|
auto out = expected.reshape(Eigen::DSizes<Eigen::Index, 2>{rest, depth});
|
||||||
auto in = input.shaped<float, 2>({rest, depth});
|
auto in = input.shaped<float, 2>({rest, depth});
|
||||||
|
|
||||||
for (int64 i = 0; i < rest; ++i) {
|
for (int64 i = 0; i < rest; ++i) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user