Check that inner block dimension is continuous

This commit is contained in:
Eugene Zhulenev 2019-03-05 17:34:35 -08:00
parent 5d9a6686ed
commit 25abaa2e41

View File

@ -197,6 +197,7 @@ struct TensorEvaluator<const TensorGeneratorOp<Generator, ArgType>, Device>
it[i].span = it[i].stride * (it[i].size - 1);
it[i].count = 0;
}
eigen_assert(it[0].stride == 1);
while (it[NumDims - 1].count < it[NumDims - 1].size) {
// Generate data for the inner-most dimension.