mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Cleanup Tensor block destination and materialized block storage allocation
This commit is contained in:
@@ -154,9 +154,8 @@ static void VerifyBlockEvaluator(Expression expr, GenBlockParams gen_block) {
|
||||
Tensor<T, NumDims, Layout> dst(dst_dims);
|
||||
dst.setZero();
|
||||
if (internal::random<bool>()) {
|
||||
block_params.desc.template AddDestinationBuffer(
|
||||
dst.data(), internal::strides<Layout>(dst.dimensions()),
|
||||
dst.dimensions().TotalSize() * sizeof(T));
|
||||
block_params.desc.template AddDestinationBuffer<Layout>(
|
||||
dst.data(), internal::strides<Layout>(dst.dimensions()));
|
||||
}
|
||||
|
||||
const bool root_of_expr = internal::random<bool>();
|
||||
|
||||
Reference in New Issue
Block a user