diff options
author | Håvard Pettersen <havardpe@oath.com> | 2020-06-05 14:45:30 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2020-06-11 09:42:00 +0000 |
commit | 41df43d2296e910f4b0cec24b040ec51cfc9f7d0 (patch) | |
tree | 6d12616f2b9b0a022094fec1946454084ed70717 /eval/src/tests/tensor/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp | |
parent | 51abe86dad7be6ced30bc3b0a2fcce4359525820 (diff) |
common code for operation inlining
- add common code to make selecting the appropriate template function
easier (vespa/vespalib/util/typify.h)
- enable detection of lambda functions matching all low-level
operations. (lookup_op1, lookup_op2)
- add typifiers to decide which low-level operations should be inlined
(TypifyOp1, TypifyOp2)
- integrate into dense_simple_join as a pilot customer
Diffstat (limited to 'eval/src/tests/tensor/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp')
-rw-r--r-- | eval/src/tests/tensor/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eval/src/tests/tensor/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp b/eval/src/tests/tensor/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp index c0823248538..f9c563c9bf8 100644 --- a/eval/src/tests/tensor/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp +++ b/eval/src/tests/tensor/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp @@ -78,7 +78,6 @@ TEST("require that single multi matmul can be optimized") { TEST("require that multi matmul with lambda can be optimized") { TEST_DO(verify_optimized("reduce(join(A2B1C3a2d3,A2B1C3b5d3,f(x,y)(x*y)),sum,d)", 2, 3, 5, 6, true, true)); - TEST_DO(verify_optimized("reduce(join(A2B1C3a2d3,A2B1C3b5d3,f(x,y)(y*x)),sum,d)", 2, 3, 5, 6, true, true)); } TEST("require that expressions similar to multi matmul are not optimized") { @@ -86,6 +85,7 @@ TEST("require that expressions similar to multi matmul are not optimized") { TEST_DO(verify_not_optimized("reduce(A2B1C3a2d3*A2B1C3b5d3,sum,b)")); TEST_DO(verify_not_optimized("reduce(A2B1C3a2d3*A2B1C3b5d3,prod,d)")); TEST_DO(verify_not_optimized("reduce(A2B1C3a2d3*A2B1C3b5d3,sum)")); + TEST_DO(verify_not_optimized("reduce(join(A2B1C3a2d3,A2B1C3b5d3,f(x,y)(y*x)),sum,d)")); TEST_DO(verify_not_optimized("reduce(join(A2B1C3a2d3,A2B1C3b5d3,f(x,y)(x+y)),sum,d)")); TEST_DO(verify_not_optimized("reduce(join(A2B1C3a2d3,A2B1C3b5d3,f(x,y)(x*x)),sum,d)")); TEST_DO(verify_not_optimized("reduce(join(A2B1C3a2d3,A2B1C3b5d3,f(x,y)(y*y)),sum,d)")); |