mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Tensor block evaluation cost model
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
72166d0e6e
commit
ae07801dd8
@@ -64,7 +64,8 @@ static TensorBlockParams<NumDims> SkewedInnerBlock(
|
||||
using BlockMapper = internal::TensorBlockMapper<NumDims, Layout, Index>;
|
||||
BlockMapper block_mapper(dims,
|
||||
{internal::TensorBlockShapeType::kSkewedInnerDims,
|
||||
internal::random<size_t>(1, dims.TotalSize())});
|
||||
internal::random<size_t>(1, dims.TotalSize()),
|
||||
{0, 0, 0}});
|
||||
|
||||
Index total_blocks = block_mapper.blockCount();
|
||||
Index block_index = internal::random<Index>(0, total_blocks - 1);
|
||||
|
||||
Reference in New Issue
Block a user