Deleted an invalid assertion that prevented the assignment of empty tensors.

This commit is contained in:
Benoit Steiner
2016-01-27 17:09:30 -08:00
parent 291069e885
commit 4bf9eaf77a
3 changed files with 37 additions and 1 deletions

View File

@@ -105,7 +105,6 @@ class TensorStorage<T, DSizes<IndexType, NumIndices_>, Options_>
EIGEN_DEVICE_FUNC void resize(Index size, const array<Index, NumIndices_>& nbDimensions)
{
eigen_assert(size >= 1);
const Index currentSz = internal::array_prod(m_dimensions);
if(size != currentSz)
{