mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
Upgrade FDASSERT string format (#121)
* upgrade FDASSERT * Add c_str() for reduce * upgrade FDASSERT flag * upgrade flags * upgrade lu * fix tests cmake * Fix pybind FDASSERT
This commit is contained in:
@@ -117,7 +117,7 @@ void Softmax(const FDTensor& x, FDTensor* out, int axis) {
|
||||
FDASSERT(
|
||||
std::abs(axis) < x.shape.size(),
|
||||
"The absolute given axis should be smaller than the input's "
|
||||
"dimension. Expected absolute axis is smaller than %d, but receive %d.",
|
||||
"dimension. Expected absolute axis is smaller than %lu, but receive %d.",
|
||||
x.shape.size(), std::abs(axis));
|
||||
FD_VISIT_FLOAT_TYPES(x.dtype, "SoftmaxKernel",
|
||||
([&] { SoftmaxKernel<data_t>(x, out, axis); }));
|
||||
|
Reference in New Issue
Block a user