From c2a95aa30309115e1cc0fb279c2becf259512328 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 4 Nov 2024 07:41:13 +0800 Subject: [PATCH] fix errors for nullable attribute --- sherpa-onnx/csrc/macros.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sherpa-onnx/csrc/macros.h b/sherpa-onnx/csrc/macros.h index 506e63e13..7cd4d4627 100644 --- a/sherpa-onnx/csrc/macros.h +++ b/sherpa-onnx/csrc/macros.h @@ -152,10 +152,6 @@ #define SHERPA_ONNX_READ_META_DATA_STR_ALLOW_EMPTY(dst, src_key) \ do { \ auto value = LookupCustomModelMetaData(meta_data, src_key, allocator); \ - if (value.empty()) { \ - SHERPA_ONNX_LOGE("'%s' does not exist in the metadata", src_key); \ - exit(-1); \ - } \ \ dst = std::move(value); \ } while (0)