diff options
author | Håvard Pettersen <havardpe@oath.com> | 2018-01-31 16:16:29 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2018-01-31 16:16:29 +0000 |
commit | 6b60b5d9e9a97e6db1c7499c9fc338538bac309e (patch) | |
tree | 62166be6f0d4f64574ec5e3c4a5a3403be5ac994 /eval/src | |
parent | 0fe859754eb8fda402e52f764c8d15a647ee91cf (diff) |
use interpreted function to evaluate tensor function
Diffstat (limited to 'eval/src')
-rw-r--r-- | eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp b/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp index 80e994d8c0b..abf51d57b9a 100644 --- a/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp +++ b/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp @@ -80,8 +80,9 @@ struct Fixture Fixture(size_t lhsNumCells, size_t rhsNumCells); ~Fixture(); double eval() const { - Stash stash; - const Value &result = function.eval(DefaultTensorEngine::ref(), input.get(), stash); + InterpretedFunction ifun(DefaultTensorEngine::ref(), function); + InterpretedFunction::Context ictx(ifun); + const Value &result = ifun.eval(ictx, input.get()); ASSERT_TRUE(result.is_double()); LOG(info, "eval(): (%s) * (%s) = %f", input.param(0).type().to_spec().c_str(), |