mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-30 03:22:05 +08:00
remote HOSTDEVICE modifier
This commit is contained in:
@@ -166,6 +166,8 @@ void FDTensor::PrintInfo(const std::string& prefix) {
|
||||
CalculateStatisInfo<int32_t>(Data(), Numel(), &mean, &max, &min);
|
||||
} else if (dtype == FDDataType::INT64) {
|
||||
CalculateStatisInfo<int64_t>(Data(), Numel(), &mean, &max, &min);
|
||||
} else if (dtype == FDDataType::FP16) {
|
||||
CalculateStatisInfo<float16>(Data(), Numel(), &mean, &max, &min);
|
||||
} else {
|
||||
FDASSERT(false,
|
||||
"PrintInfo function doesn't support current situation, maybe you "
|
||||
|
||||
Reference in New Issue
Block a user