Skip to content

Commit

Permalink
Merge pull request #8 from cms-externals/smuzaffar-patch-1
Browse files Browse the repository at this point in the history
Don't crash on empty tensor contraction
  • Loading branch information
smuzaffar authored Feb 15, 2024
2 parents e021252 + 8d6ee2b commit 4dce4ce
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ struct TensorContractionBlockMemAllocator {
eigen_assert(rhs_block);
BlockSizes sz = ComputeLhsRhsBlockSizes(bm, bk, bn);
char* block_mem = static_cast<char*>(d.allocate(sz.lhs_size + sz.rhs_size));
eigen_assert(block_mem);
*lhs_block = reinterpret_cast<LhsScalar*>(block_mem);
*rhs_block = reinterpret_cast<RhsScalar*>(block_mem + sz.lhs_size);
return block_mem;
Expand Down

0 comments on commit 4dce4ce

Please sign in to comment.