From ad486e21e5870f41774f30825c270762e08ae71e Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Tue, 7 Aug 2018 17:17:06 +0100 Subject: COMPMID-1188 - Fixed files extensions in GraphUtils.h Also fixed the calculation of num_elements in access_numpy_tensor Change-Id: Ic1a394ff829746d7803b81360830bade63b6b82a Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/143132 Reviewed-by: Anthony Barbier Tested-by: Jenkins --- utils/GraphUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/GraphUtils.cpp') diff --git a/utils/GraphUtils.cpp b/utils/GraphUtils.cpp index ef09d3da67..573c757aa7 100644 --- a/utils/GraphUtils.cpp +++ b/utils/GraphUtils.cpp @@ -149,7 +149,7 @@ NumPyAccessor::NumPyAccessor(std::string npy_path, TensorShape shape, DataType d template void NumPyAccessor::access_numpy_tensor(ITensor &tensor) { - const int num_elements = tensor.info()->total_size(); + const int num_elements = tensor.info()->tensor_shape().total_size(); int num_mismatches = utils::compare_tensor(tensor, _npy_tensor); float percentage_mismatches = static_cast(num_mismatches) / num_elements; -- cgit v1.2.1