aboutsummaryrefslogtreecommitdiff
path: root/src/core/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/Utils.cpp')
-rw-r--r--src/core/Utils.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/Utils.cpp b/src/core/Utils.cpp
index b81b498ae5..930e4c7975 100644
--- a/src/core/Utils.cpp
+++ b/src/core/Utils.cpp
@@ -330,6 +330,13 @@ std::string lower_string(const std::string &val)
return res;
}
+std::string upper_string(const std::string &val)
+{
+ std::string res = val;
+ std::transform(res.begin(), res.end(), res.begin(), ::toupper);
+ return res;
+}
+
PadStrideInfo calculate_same_pad(TensorShape input_shape, TensorShape weights_shape, PadStrideInfo conv_info, DataLayout data_layout, const Size2D &dilation,
const DimensionRoundingType &rounding_type)
{