mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +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:
@@ -12,13 +12,13 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "fastdeploy/core/fd_tensor.h"
|
||||
#include "fastdeploy/core/float16.h"
|
||||
#include "gtest_utils.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include <array>
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
#include "fastdeploy/core/fd_tensor.h"
|
||||
#include "fastdeploy/core/float16.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "gtest_utils.h"
|
||||
|
||||
namespace fastdeploy {
|
||||
|
||||
@@ -113,7 +113,7 @@ TEST(float16, comparison_cpu) {
|
||||
TEST(float16, floating) {
|
||||
// compile time assert.
|
||||
FDASSERT(std::is_floating_point<float16>::value,
|
||||
"The float16 support in CPU failed.")
|
||||
"The float16 support in CPU failed.");
|
||||
}
|
||||
|
||||
TEST(float16, print) {
|
||||
|
Reference in New Issue
Block a user