diff options
author | Eugene Zhulenev <ezhulenev@google.com> | 2018-09-11 13:32:32 -0700 |
---|---|---|
committer | Eugene Zhulenev <ezhulenev@google.com> | 2018-09-11 13:32:32 -0700 |
commit | 81b38a155adf5d527bce5c84cf90cd83c28da445 (patch) | |
tree | 8d0310b4b06a4667447ac7d0b4c66ebd16efb903 /unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h | |
parent | c144bb355b74f4600156284e8202fcf9c0c135d8 (diff) |
Fix compilation of tiled evaluation code with c++03
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h index 6d90af2d3..13da36257 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h @@ -396,8 +396,8 @@ struct TensorBlockCwiseUnaryOp { typedef const Eigen::Array<InputScalar, Dynamic, 1> Input; typedef Eigen::Array<OutputScalar, Dynamic, 1> Output; - typedef Eigen::Map<Input, 0, InnerStride<>> InputMap; - typedef Eigen::Map<Output, 0, InnerStride<>> OutputMap; + typedef Eigen::Map<Input, 0, InnerStride<> > InputMap; + typedef Eigen::Map<Output, 0, InnerStride<> > OutputMap; const InputScalar* input_base = &input_data[input_index]; OutputScalar* output_base = &output_data[output_index]; @@ -502,7 +502,7 @@ struct TensorBlockCwiseUnaryIO { input_stride, input_data); // Update index. for (int j = 0; j < num_squeezed_dims; ++j) { - auto& state = block_iter_state[j]; + BlockIteratorState& state = block_iter_state[j]; if (++state.count < state.size) { output_index += state.output_stride; input_index += state.input_stride; |