Home
last modified time | relevance | path

Searched refs:tensor4 (Results 1 – 4 of 4) sorted by relevance

/external/eigen/unsupported/test/
Dcxx11_tensor_morphing.cpp24 Tensor<float, 2> tensor4(2,21); in test_simple_reshape() local
31 tensor4 = tensor1.reshape(dim1).reshape(dim3); in test_simple_reshape()
38 VERIFY_IS_EQUAL(tensor1(i,j,0,k,0), tensor4(i,j+3*k)); in test_simple_reshape()
181 TensorMap<Tensor<const T, 2, DataLayout>> tensor4(m1.data(), 7, 7); in test_slice_in_expr() local
182 …Tensor<T, 1, DataLayout> tensor6 = tensor4.reshape(DSizes<ptrdiff_t, 1>(7*7)).exp().slice(DSizes<p… in test_slice_in_expr()
184 VERIFY_IS_APPROX(tensor6(i), expf(tensor4.data()[i])); in test_slice_in_expr()
197 Tensor<T, 3, DataLayout> tensor4(4,3,2); in test_slice_as_lvalue() local
198 tensor4.setRandom(); in test_slice_as_lvalue()
215 result.slice(fourth_slice, sizes4) = tensor4; in test_slice_as_lvalue()
231 VERIFY_IS_EQUAL(result(i,j,k), tensor4(i,j-2,k-5)); in test_slice_as_lvalue()
Dcxx11_tensor_trace.cpp118 Tensor<float, 5, DataLayout> tensor4(3, 7, 4, 7, 5); in test_simple_trace() local
119 tensor4.setRandom(); in test_simple_trace()
121 Tensor<float, 3, DataLayout> result5 = tensor4.trace(dims5); in test_simple_trace()
131 sum += tensor4(i, l, j, l, k); in test_simple_trace()
Dcxx11_tensor_assign.cpp236 Tensor<int, 1> tensor4(7); in test_auto_resize() local
241 tensor1 = tensor2 = tensor3 = tensor4 = new_tensor; in test_auto_resize()
246 VERIFY_IS_EQUAL(tensor4.dimension(0), new_tensor.dimension(0)); in test_auto_resize()
251 VERIFY_IS_EQUAL(tensor4(i), new_tensor(i)); in test_auto_resize()
Dcxx11_tensor_morphing_sycl.cpp42 Tensor<DataType, 2, DataLayout, IndexType> tensor4(dim4); in test_simple_reshape() local
49 …DataType* gpu_data4 = static_cast<DataType*>(sycl_device.allocate(tensor4.size()*sizeof(DataType)… in test_simple_reshape()
65 sycl_device.memcpyDeviceToHost(tensor4.data(), gpu_data4,(tensor4.size())*sizeof(DataType)); in test_simple_reshape()
72 VERIFY_IS_EQUAL(tensor1(i,j,0,k,0), tensor4(i,j+3*k)); ///ColMajor in test_simple_reshape()
76 VERIFY_IS_EQUAL(tensor1(i,j,0,k,0), tensor4(i,j*7 +k)); /// RowMajor in test_simple_reshape()