summaryrefslogtreecommitdiffstats
path: root/eval/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'eval/src/tests')
-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(),