Searched refs:slice1 (Results 1 – 1 of 1) sorted by relevance
/external/eigen/unsupported/test/ |
D | cxx11_tensor_morphing.cpp | 99 Tensor<float, 5, DataLayout> slice1(1,1,1,1,1); in test_simple_slice() local 102 slice1 = tensor.slice(indices, sizes); in test_simple_slice() 103 VERIFY_IS_EQUAL(slice1(0,0,0,0,0), tensor(1,2,3,4,5)); in test_simple_slice() 235 auto slice1 = SliceEvaluator(tensor.slice(offsets, extents), DefaultDevice()); in test_slice_raw_data() local 236 VERIFY_IS_EQUAL(slice1.dimensions().TotalSize(), 1); in test_slice_raw_data() 237 VERIFY_IS_EQUAL(slice1.data()[0], tensor(1,2,3,4)); in test_slice_raw_data() 368 Tensor5f slice1(1,1,1,1,1); in test_strided_slice() local 372 slice1 = tensor.stridedSlice(indicesStart, indicesStop, strides); in test_strided_slice() 373 VERIFY_IS_EQUAL(slice1(0,0,0,0,0), tensor(1,2,3,4,5)); in test_strided_slice()
|