From 6b60b5d9e9a97e6db1c7499c9fc338538bac309e Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Wed, 31 Jan 2018 16:16:29 +0000 Subject: use interpreted function to evaluate tensor function --- .../dense_dot_product_function/dense_dot_product_function_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'eval/src/tests') 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(), -- cgit v1.2.3