mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Don't crash on empty tensor contraction.
(cherry picked from commit b0f877f8e0)
This commit is contained in:
committed by
Antonio Sanchez
parent
72b0759451
commit
d4c24eca96
@@ -89,7 +89,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;
|
||||
|
||||
Reference in New Issue
Block a user