Remove eigen compliation option (#161)

Remove eigen option
This commit is contained in:
Jack Zhou
2022-08-26 11:20:52 +08:00
committed by GitHub
parent e345ef6fd9
commit 391d66381f
10 changed files with 10 additions and 35 deletions

View File

@@ -24,8 +24,6 @@
namespace fastdeploy {
#ifdef ENABLE_FDTENSOR_FUNC
template <typename T, size_t D, size_t R_D, typename Functor>
void ReduceFunctor(const FDTensor& input, FDTensor* output,
const std::vector<int64_t>& dims, bool keep_dim) {
@@ -404,6 +402,4 @@ void ArgMin(const FDTensor& x, FDTensor* out, int64_t axis,
}));
}
#endif
} // namespace fastdeploy

View File

@@ -18,7 +18,6 @@
namespace fastdeploy {
#ifdef ENABLE_FDTENSOR_FUNC
/** Excute the maximum operation for input FDTensor along given dims.
@param x The input tensor.
@param out The output tensor which stores the result.
@@ -124,5 +123,4 @@ FASTDEPLOY_DECL void ArgMin(const FDTensor& x, FDTensor* out, int64_t axis,
FDDataType output_dtype = FDDataType::INT64,
bool keep_dim = false, bool flatten = false);
#endif
} // namespace fastdeploy

View File

@@ -21,8 +21,6 @@
#include "fastdeploy/utils/utils.h"
namespace fastdeploy {
#ifdef ENABLE_FDTENSOR_FUNC
template <typename T>
struct ValueClip {
T operator()(const T& x) const {
@@ -122,5 +120,4 @@ void Softmax(const FDTensor& x, FDTensor* out, int axis) {
FD_VISIT_FLOAT_TYPES(x.dtype, "SoftmaxKernel",
([&] { SoftmaxKernel<data_t>(x, out, axis); }));
}
#endif
} // namespace fastdeploy

View File

@@ -18,7 +18,6 @@
namespace fastdeploy {
#ifdef ENABLE_FDTENSOR_FUNC
/** Excute the softmax operation for input FDTensor along given dims.
@param x The input tensor.
@param out The output tensor which stores the result.
@@ -26,5 +25,4 @@ namespace fastdeploy {
*/
FASTDEPLOY_DECL void Softmax(const FDTensor& x, FDTensor* out, int axis = -1);
#endif
} // namespace fastdeploy

View File

@@ -17,7 +17,6 @@
#include "fastdeploy/utils/utils.h"
namespace fastdeploy {
#ifdef ENABLE_FDTENSOR_FUNC
template <typename T>
struct TransposeNormalKernel {
@@ -115,5 +114,5 @@ void Transpose(const FDTensor& x, FDTensor* out,
FD_VISIT_ALL_TYPES(x.dtype, "TransposeKernel",
([&] { TransposeKernel<data_t>(x, out, dims); }));
}
#endif
} // namespace fastdeploy

View File

@@ -17,7 +17,7 @@
#include "fastdeploy/core/fd_tensor.h"
namespace fastdeploy {
#ifdef ENABLE_FDTENSOR_FUNC
/** Excute the transpose operation for input FDTensor along given dims.
@param x The input tensor.
@param out The output tensor which stores the result.
@@ -25,5 +25,4 @@ namespace fastdeploy {
*/
FASTDEPLOY_DECL void Transpose(const FDTensor& x, FDTensor* out,
const std::vector<int64_t>& dims);
#endif
} // namespace fastdeploy