summaryrefslogtreecommitdiff
path: root/source/application/main/include/PlatformMath.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/application/main/include/PlatformMath.hpp')
-rw-r--r--source/application/main/include/PlatformMath.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/application/main/include/PlatformMath.hpp b/source/application/main/include/PlatformMath.hpp
index 6804025..fdb51b2 100644
--- a/source/application/main/include/PlatformMath.hpp
+++ b/source/application/main/include/PlatformMath.hpp
@@ -161,7 +161,14 @@ namespace math {
float* ptrDst,
const uint32_t dstLen);
+ /**
+ * @brief Scales output scores for an arbitrary number of classes so
+ * that they sum to 1, allowing output to be expressed as a probability.
+ * @param[in] vector Vector of floats modified in-place
+ */
+ static void SoftmaxF32(std::vector<float>& vec);
};
+
} /* namespace math */
} /* namespace app */
} /* namespace arm */