mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Allocate non-const scalar buffer for block evaluation with DefaultDevice
This commit is contained in:
parent
ffaf658ecd
commit
4ac93f8edc
@ -189,7 +189,7 @@ class TensorExecutor<Expression, DefaultDevice, Vectorizable,
|
|||||||
block_total_size);
|
block_total_size);
|
||||||
block_total_size = block_mapper.block_dims_total_size();
|
block_total_size = block_mapper.block_dims_total_size();
|
||||||
|
|
||||||
Scalar* data = static_cast<Scalar*>(
|
ScalarNoConst* data = static_cast<ScalarNoConst*>(
|
||||||
device.allocate(block_total_size * sizeof(Scalar)));
|
device.allocate(block_total_size * sizeof(Scalar)));
|
||||||
|
|
||||||
const StorageIndex total_block_count = block_mapper.total_block_count();
|
const StorageIndex total_block_count = block_mapper.total_block_count();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user