From dbca11e8805ec07660d8f966a1884ad0be302f15 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Tue, 10 Dec 2019 11:58:30 -0800 Subject: Remove TensorBlock.h and old TensorBlock/BlockMapper --- .../Eigen/CXX11/src/Tensor/TensorChipping.h | 51 ---------------------- 1 file changed, 51 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h b/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h index 9b835c4de..268c3246a 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h @@ -447,13 +447,6 @@ struct TensorEvaluator, Device> RawAccess = false }; - typedef typename internal::remove_const::type ScalarNoConst; - - typedef internal::TensorBlock - InputTensorBlock; - typedef internal::TensorBlock - OutputTensorBlock; - //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===// typedef internal::TensorBlockDescriptor TensorBlockDesc; //===--------------------------------------------------------------------===// @@ -506,50 +499,6 @@ struct TensorEvaluator, Device> } } - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void writeBlock( - const OutputTensorBlock& output_block) { - // Calculate input block sizes. - const DSizes& output_block_sizes = - output_block.block_sizes(); - const DSizes& output_block_strides = - output_block.block_strides(); - const Index chip_dim = this->m_dim.actualDim(); - DSizes input_block_sizes; - DSizes input_block_strides; - for (Index i = 0; i < NumInputDims; ++i) { - if (i < chip_dim) { - input_block_sizes[i] = output_block_sizes[i]; - input_block_strides[i] = output_block_strides[i]; - } else if (i > chip_dim) { - input_block_sizes[i] = output_block_sizes[i - 1]; - input_block_strides[i] = output_block_strides[i - 1]; - } else { - input_block_sizes[i] = 1; - } - } - // Fix up input_block_stride for chip dimension. - if (static_cast(Layout) == static_cast(ColMajor)) { - if (chip_dim == 0) { - input_block_strides[chip_dim] = 1; - } else { - input_block_strides[chip_dim] = - input_block_strides[chip_dim - 1] * input_block_sizes[chip_dim - 1]; - } - } else { - if (chip_dim == NumInputDims - 1) { - input_block_strides[chip_dim] = 1; - } else { - input_block_strides[chip_dim] = - input_block_strides[chip_dim + 1] * input_block_sizes[chip_dim + 1]; - } - } - // Write input block. - this->m_impl.writeBlock(InputTensorBlock( - this->srcCoeff(output_block.first_coeff_index()), input_block_sizes, - input_block_strides, this->m_inputStrides, - const_cast(output_block.data()))); - } - template EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void writeBlockV2( const TensorBlockDesc& desc, const TensorBlockV2& block) { -- cgit v1.2.3