mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
Do not create Tensor<const T> in cxx11_tensor_forced_eval test
This commit is contained in:
parent
efb5080d31
commit
b1a8627493
@ -61,7 +61,7 @@ static void test_const()
|
||||
Eigen::array<int, 2> bcast;
|
||||
bcast[0] = 3;
|
||||
bcast[1] = 1;
|
||||
const TensorMap<Tensor<const float, 2> > input_tensor(input.data(), 3, 3);
|
||||
const TensorMap<const Tensor<float, 2> > input_tensor(input.data(), 3, 3);
|
||||
Tensor<float, 2> output_tensor= (input_tensor - input_tensor.maximum(depth_dim).eval().reshape(dims2d).broadcast(bcast));
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user