summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2018-01-31 16:16:29 +0000
committerHåvard Pettersen <havardpe@oath.com>2018-01-31 16:16:29 +0000
commit6b60b5d9e9a97e6db1c7499c9fc338538bac309e (patch)
tree62166be6f0d4f64574ec5e3c4a5a3403be5ac994 /eval
parent0fe859754eb8fda402e52f764c8d15a647ee91cf (diff)
use interpreted function to evaluate tensor function
Diffstat (limited to 'eval')
-rw-r--r--eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp5
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(),