[Other] Add namespace for functions (#538)

Add namespace for functions
This commit is contained in:
Jason
2022-11-09 13:57:53 +08:00
committed by GitHub
parent 4706a7c32a
commit f2fed7959b
27 changed files with 63 additions and 61 deletions

View File

@@ -21,6 +21,7 @@
#include "fastdeploy/utils/utils.h"
namespace fastdeploy {
namespace function {
template <typename T>
struct ValueClip {
T operator()(const T& x) const {
@@ -124,4 +125,5 @@ void Softmax(const FDTensor& x, FDTensor* out, int axis) {
([&] { SoftmaxKernel<data_t>(x, &out_tmp, axis); }));
*out = std::move(out_tmp);
}
} // namespace function
} // namespace fastdeploy