From 88d5b22eb5574d8b564474df2c758d222b3b5547 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Fri, 6 Apr 2018 12:24:55 +0100 Subject: COMPMID-1035 - Add ResneXt50 as a graph example Change-Id: I42f0e7dab38e45b5eecfe6858eaecee8939c8585 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129291 Reviewed-by: Georgios Pinitas Reviewed-by: Anthony Barbier Tested-by: Jenkins --- arm_compute/core/utils/misc/Utility.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arm_compute/core/utils') diff --git a/arm_compute/core/utils/misc/Utility.h b/arm_compute/core/utils/misc/Utility.h index 639f2e155d..f30a417a09 100644 --- a/arm_compute/core/utils/misc/Utility.h +++ b/arm_compute/core/utils/misc/Utility.h @@ -164,6 +164,16 @@ std::vector sort_indices(const std::vector &v) return idx; } + +inline bool endswith(const std::string &filename, const std::string &suffix) +{ + if(filename.size() < suffix.size()) + { + return false; + } + return std::equal(suffix.rbegin(), suffix.rend(), filename.rbegin()); +} + } // namespace utility } // namespace arm_compute #endif /* __ARM_COMPUTE_MISC_UTILITY_H__ */ -- cgit v1.2.1