mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Harden unsupported tensor tests for sanitizers
libeigen/eigen!2321 Co-authored-by: Rasmus Munk Larsen <rlarsen@nvidia.com> Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
@@ -85,7 +85,7 @@ template <int DataLayout>
|
||||
static void test_tensor_maps() {
|
||||
int inputs[20];
|
||||
TensorMap<Tensor<int, 1, DataLayout> > tensor_map(inputs, 20);
|
||||
tensor_map.setRandom();
|
||||
setRandomDataInRange(tensor_map, -1000, 1000);
|
||||
|
||||
Tensor<int, 1, DataLayout> result = tensor_map.cumsum(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user