Home
last modified time | relevance | path

Searched refs:t_result (Results 1 – 10 of 10) sorted by relevance

/external/eigen/unsupported/test/
Dcxx11_tensor_thread_pool.cpp71 Tensor<float, 5, DataLayout> t_result(30, 50, 70, 2, 10); in test_multithread_contraction() local
89 t_result.device(thread_pool_device) = t_left.contract(t_right, dims); in test_multithread_contraction()
92 for (ptrdiff_t i = 0; i < t_result.size(); i++) { in test_multithread_contraction()
93 VERIFY(&t_result.data()[i] != &m_result.data()[i]); in test_multithread_contraction()
94 if (fabsf(t_result(i) - m_result(i)) < 1e-4f) { in test_multithread_contraction()
97 if (Eigen::internal::isApprox(t_result(i), m_result(i), 1e-4f)) { in test_multithread_contraction()
100 std::cout << "mismatch detected at index " << i << ": " << t_result(i) in test_multithread_contraction()
111 Tensor<float, 2, DataLayout> t_result(500, 28*28); in test_contraction_corner_cases() local
115 t_result = t_result.constant(NAN); in test_contraction_corner_cases()
130 t_result.device(thread_pool_device) = t_left.contract(t_right, dims); in test_contraction_corner_cases()
[all …]
Dcxx11_tensor_contract_cuda.cu35 Tensor<float, 2, DataLayout> t_result(m_size, n_size); in test_cuda_contraction() local
44 std::size_t t_result_bytes = t_result.size() * sizeof(float); in test_cuda_contraction()
69 t_result = t_left.contract(t_right, dims); in test_cuda_contraction()
72 for (DenseIndex i = 0; i < t_result.size(); i++) { in test_cuda_contraction()
73 if (fabs(t_result(i) - t_result_gpu(i)) < 1e-4f) { in test_cuda_contraction()
76 if (Eigen::internal::isApprox(t_result(i), t_result_gpu(i), 1e-4f)) { in test_cuda_contraction()
79 std::cout << "mismatch detected at index " << i << ": " << t_result(i) in test_cuda_contraction()
99 Tensor<float, 0, DataLayout> t_result; in test_scalar() local
132 t_result = t_left.contract(t_right, dims); in test_scalar()
135 if (fabs(t_result() - t_result_gpu()) > 1e-4f && in test_scalar()
[all …]
Dcxx11_tensor_scan_cuda.cu30 Tensor<float, 3, DataLayout> t_result(m_size, k_size, n_size); in test_cuda_cumsum() local
36 std::size_t t_result_bytes = t_result.size() * sizeof(float); in test_cuda_cumsum()
55 t_result = t_input.cumsum(1); in test_cuda_cumsum()
58 for (DenseIndex i = 0; i < t_result.size(); i++) { in test_cuda_cumsum()
59 if (fabs(t_result(i) - t_result_gpu(i)) < 1e-4f) { in test_cuda_cumsum()
62 if (Eigen::internal::isApprox(t_result(i), t_result_gpu(i), 1e-4f)) { in test_cuda_cumsum()
65 std::cout << "mismatch detected at index " << i << ": " << t_result(i) in test_cuda_cumsum()
Dcxx11_tensor_contraction.cpp357 Tensor<float, 5, DataLayout> t_result(30, 50, 7, 20, 10); in test_large_contraction() local
375 t_result = t_left.contract(t_right, dims); in test_large_contraction()
378 for (int i = 0; i < t_result.dimensions().TotalSize(); i++) { in test_large_contraction()
379 VERIFY(&t_result.data()[i] != &m_result.data()[i]); in test_large_contraction()
380 VERIFY_IS_APPROX(t_result.data()[i], m_result.data()[i]); in test_large_contraction()
389 Tensor<float, 1, DataLayout> t_result(30); in test_matrix_vector() local
403 t_result = t_left.contract(t_right, dims); in test_matrix_vector()
406 for (int i = 0; i < t_result.dimensions().TotalSize(); i++) { in test_matrix_vector()
407 VERIFY(internal::isApprox(t_result(i), m_result(i, 0), 1)); in test_matrix_vector()
423 Tensor<float, 3, DataLayout> t_result = t_left.contract(t_right, dim_pair01); in test_tensor_vector() local
[all …]
Dcxx11_tensor_of_complex.cpp74 Tensor<std::complex<float>, 5> t_result(30, 50, 7, 20, 10); in test_contractions() local
89 t_result = t_left.contract(t_right, dims); in test_contractions()
91 for (int i = 0; i < t_result.dimensions().TotalSize(); i++) { in test_contractions()
92 VERIFY_IS_APPROX(t_result.data()[i], m_result.data()[i]); in test_contractions()
Dcxx11_tensor_cuda.cu264 Tensor<float, 5, DataLayout> t_result(Eigen::array<Eigen::DenseIndex, 5>(6, 50, 7, 20, 1)); in test_cuda_contraction() local
271 std::size_t t_result_bytes = t_result.size() * sizeof(float); in test_cuda_contraction()
304 cudaMemcpy(t_result.data(), d_t_result, t_result_bytes, cudaMemcpyDeviceToHost); in test_cuda_contraction()
306 for (DenseIndex i = 0; i < t_result.size(); i++) { in test_cuda_contraction()
307 if (fabs(t_result.data()[i] - m_result.data()[i]) >= 1e-4f) { in test_cuda_contraction()
308 …std::cout << "mismatch detected at index " << i << ": " << t_result.data()[i] << " vs " << m_resu… in test_cuda_contraction()
/external/markdown/MarkdownTest/
DMarkdownTest.pl62 my $t_result = <RESULT>;
67 $t_result =~ s/\s+\z//; # trim trailing whitespace
71 $t_result =~ s{'}{'\\''}g; # escape ' chars for shell
73 $t_result = `echo '$t_result' | tidy -quiet --show-warnings n`;
77 if ($t_output eq $t_result) {
/external/valgrind/VEX/priv/
Dir_inject.c312 if (iricb.t_result == Ity_I1 || sizeofIRType(iricb.t_result) <= 8) { in vex_inject_ir()
314 } else if (sizeofIRType(iricb.t_result) == 16) { in vex_inject_ir()
/external/valgrind/memcheck/tests/vbit-test/
Dvalgrind.c44 cb.t_result = data->result.type; in new_iricb()
/external/valgrind/VEX/pub/
Dlibvex.h890 IRType t_result; // type of result member