mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Added tests for tensors of const values and tensors of stringswwq::
This commit is contained in:
@@ -301,7 +301,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(Scalar* data) {
|
||||
m_impl.evalSubExprsIfNeeded(NULL);
|
||||
if (data && m_impl.data()) {
|
||||
if (internal::is_arithmetic<Scalar>::value && data && m_impl.data()) {
|
||||
Index contiguous_values = 1;
|
||||
for (int i = 0; i < NumDims; ++i) {
|
||||
contiguous_values *= dimensions()[i];
|
||||
|
||||
Reference in New Issue
Block a user