diff --git a/fastdeploy/backends/lite/lite_backend.cc b/fastdeploy/backends/lite/lite_backend.cc index 53d8fd5426..04f1392568 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); }