// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include #include #include #include template boost::array GetTensorShapeAsArray(const armnn::TensorInfo& tensorInfo) { ARMNN_ASSERT_MSG(n == tensorInfo.GetNumDimensions(), "Attempting to construct a shape array of mismatching size"); boost::array shape; for (unsigned int i = 0; i < n; i++) { shape[i] = tensorInfo.GetShape()[i]; } return shape; } template struct LayerTestResult { LayerTestResult(const armnn::TensorInfo& outputInfo) { auto shape( GetTensorShapeAsArray(outputInfo) ); output.resize(shape); outputExpected.resize(shape); supported = true; compareBoolean = false; } boost::multi_array output; boost::multi_array outputExpected; bool supported; bool compareBoolean; };