From 0f63f89979ae6b22b811dc7a0102aa30790997a3 Mon Sep 17 00:00:00 2001 From: DefTruth Date: Mon, 5 Dec 2022 15:17:37 +0800 Subject: [PATCH] [Bug Fix] add __aarch64__ to limit int64 in armv8 --- fastdeploy/backends/lite/lite_backend.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fastdeploy/backends/lite/lite_backend.cc b/fastdeploy/backends/lite/lite_backend.cc index 42797411d8..a390e93e73 100755 --- a/fastdeploy/backends/lite/lite_backend.cc +++ b/fastdeploy/backends/lite/lite_backend.cc @@ -222,9 +222,13 @@ bool LiteBackend::Infer(std::vector& inputs, reinterpret_cast(const_cast( inputs[i].CpuData()))); } else if (inputs[i].dtype == FDDataType::INT64) { +#ifdef __aarch64__ tensor->CopyFromCpu( reinterpret_cast(const_cast( inputs[i].CpuData()))); +#else + FDASSERT(false, "FDDataType::INT64 is not support for Arm v7 now!"); +#endif } else { FDASSERT(false, "Unexpected data type of %d.", inputs[i].dtype); }