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_xw_product_function/dense_xw_product_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_xw_product_function/dense_xw_product_function_test.cpp')
-rw-r--r-- | eval/src/tests/tensor/dense_xw_product_function/dense_xw_product_function_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eval/src/tests/tensor/dense_xw_product_function/dense_xw_product_function_test.cpp b/eval/src/tests/tensor/dense_xw_product_function/dense_xw_product_function_test.cpp index 0b924451907..3ecc3f66cda 100644 --- a/eval/src/tests/tensor/dense_xw_product_function/dense_xw_product_function_test.cpp +++ b/eval/src/tests/tensor/dense_xw_product_function/dense_xw_product_function_test.cpp @@ -130,13 +130,13 @@ TEST("require that xw product gives same results as reference join/reduce") { TEST("require that various variants of xw product can be optimized") { TEST_DO(verify_optimized("reduce(join(y3,x2y3,f(x,y)(x*y)),sum,y)", 3, 2, true)); - TEST_DO(verify_optimized("reduce(join(y3,x2y3,f(x,y)(y*x)),sum,y)", 3, 2, true)); } TEST("require that expressions similar to xw product are not optimized") { TEST_DO(verify_not_optimized("reduce(y3*x2y3,sum,x)")); TEST_DO(verify_not_optimized("reduce(y3*x2y3,prod,y)")); TEST_DO(verify_not_optimized("reduce(y3*x2y3,sum)")); + TEST_DO(verify_not_optimized("reduce(join(y3,x2y3,f(x,y)(y*x)),sum,y)")); TEST_DO(verify_not_optimized("reduce(join(y3,x2y3,f(x,y)(x+y)),sum,y)")); TEST_DO(verify_not_optimized("reduce(join(y3,x2y3,f(x,y)(x*x)),sum,y)")); TEST_DO(verify_not_optimized("reduce(join(y3,x2y3,f(x,y)(y*y)),sum,y)")); |