summaryrefslogtreecommitdiffstats
path: root/eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp')
-rw-r--r--eval/src/tests/tensor/dense_dot_product_function/dense_dot_product_function_test.cpp4
1 files changed, 2 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 abf51d57b9a..71bbacc7806 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
@@ -31,10 +31,10 @@ makeTensor(size_t numCells, double cellBias)
double
calcDotProduct(const DenseTensor &lhs, const DenseTensor &rhs)
{
- size_t numCells = std::min(lhs.cells().size(), rhs.cells().size());
+ size_t numCells = std::min(lhs.cellsRef().size(), rhs.cellsRef().size());
double result = 0;
for (size_t i = 0; i < numCells; ++i) {
- result += (lhs.cells()[i] * rhs.cells()[i]);
+ result += (lhs.cellsRef()[i] * rhs.cellsRef()[i]);
}
return result;
}