From 2d70ac4c02808609feb357488dcd080bd6fc5ba5 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Mon, 6 Nov 2023 17:46:02 +0000 Subject: Main Compliance testing for simple UNARY ops For RECIPROCAL, RSQRT, CEIL, FLOOR, ABS, NEGATE & IDENTITY. Improved ULP informational output. Signed-off-by: Jeremy Johnson Change-Id: I49644573b4c9a30b2b9d6c9624f2a1d46976a378 --- reference_model/src/verify/verify_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'reference_model/src/verify/verify_utils.h') diff --git a/reference_model/src/verify/verify_utils.h b/reference_model/src/verify/verify_utils.h index 15d7ba5..24d65b0 100644 --- a/reference_model/src/verify/verify_utils.h +++ b/reference_model/src/verify/verify_utils.h @@ -91,6 +91,12 @@ std::optional parseVerifyConfig(const char* tensorName, const char /// \brief Extract number of total elements int64_t numElements(const std::vector& shape); +/// \brief Convert a flat index to a shape position +std::vector indexToPosition(int64_t index, const std::vector& shape); + +/// \brief A string representing the shape or position +std::string positionToString(const std::vector& pos); + /// \brief Map API data-type to DType DType mapToDType(tosa_datatype_t dataType); -- cgit v1.2.1