mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
[Functions] Add quantile function (#700)
* Add sort function * Add isfinite function * upgrade isinf isnan * Add Scalar to FDTensor * Add floor, ceil function * add cast functions * Update out_tmp * Update quantile * add gather scatter along axis * finish quantile function * Add quantile unittest * refresh code style for test source code * Add comments * Add full function * Add scalar to fd tensor * Add full unittest * Add functions headers * move fdtensor operators to fastdeploy namespace
This commit is contained in:
@@ -26,8 +26,6 @@ namespace function {
|
||||
*/
|
||||
FASTDEPLOY_DECL void Add(const FDTensor& x, const FDTensor& y, FDTensor* out);
|
||||
|
||||
FASTDEPLOY_DECL FDTensor operator+(const FDTensor& x, const FDTensor& y);
|
||||
|
||||
/** Excute the subtract operation for input FDTensors. *out = x - y.
|
||||
@param x The input tensor.
|
||||
@param y The input tensor.
|
||||
@@ -36,8 +34,6 @@ FASTDEPLOY_DECL FDTensor operator+(const FDTensor& x, const FDTensor& y);
|
||||
FASTDEPLOY_DECL void Subtract(const FDTensor& x, const FDTensor& y,
|
||||
FDTensor* out);
|
||||
|
||||
FASTDEPLOY_DECL FDTensor operator-(const FDTensor& x, const FDTensor& y);
|
||||
|
||||
/** Excute the multiply operation for input FDTensors. *out = x * y.
|
||||
@param x The input tensor.
|
||||
@param y The input tensor.
|
||||
@@ -46,7 +42,6 @@ FASTDEPLOY_DECL FDTensor operator-(const FDTensor& x, const FDTensor& y);
|
||||
FASTDEPLOY_DECL void Multiply(const FDTensor& x, const FDTensor& y,
|
||||
FDTensor* out);
|
||||
|
||||
FASTDEPLOY_DECL FDTensor operator*(const FDTensor& x, const FDTensor& y);
|
||||
/** Excute the divide operation for input FDTensors. *out = x / y.
|
||||
@param x The input tensor.
|
||||
@param y The input tensor.
|
||||
@@ -54,7 +49,6 @@ FASTDEPLOY_DECL FDTensor operator*(const FDTensor& x, const FDTensor& y);
|
||||
*/
|
||||
FASTDEPLOY_DECL void Divide(const FDTensor& x, const FDTensor& y,
|
||||
FDTensor* out);
|
||||
FASTDEPLOY_DECL FDTensor operator/(const FDTensor& x, const FDTensor& y);
|
||||
|
||||
/** Excute the maximum operation for input FDTensors. *out = max(x, y).
|
||||
@param x The input tensor.
|
||||
@@ -65,4 +59,13 @@ FASTDEPLOY_DECL void Maximum(const FDTensor& x, const FDTensor& y,
|
||||
FDTensor* out);
|
||||
|
||||
} // namespace function
|
||||
|
||||
FASTDEPLOY_DECL FDTensor operator+(const FDTensor& x, const FDTensor& y);
|
||||
|
||||
FASTDEPLOY_DECL FDTensor operator-(const FDTensor& x, const FDTensor& y);
|
||||
|
||||
FASTDEPLOY_DECL FDTensor operator*(const FDTensor& x, const FDTensor& y);
|
||||
|
||||
FASTDEPLOY_DECL FDTensor operator/(const FDTensor& x, const FDTensor& y);
|
||||
|
||||
} // namespace fastdeploy
|
||||
|
Reference in New Issue
Block a user