forked from mindspore-Ecosystem/mindspore
:lite support gcc9.3 and ndk23
This commit is contained in:
parent
5213c04a9f
commit
bb6ddbb97a
|
@ -44,8 +44,8 @@ int HandleTwoInputs(const TensorC *const *inputs, ResizeParameter *param) {
|
|||
return NNACL_INFER_INVALID;
|
||||
}
|
||||
|
||||
MS_CHECK_INT_MUL_NOT_OVERFLOW(data[1], GetHeight(input), NNACL_ERRCODE_MUL_OVERFLOW);
|
||||
MS_CHECK_INT_MUL_NOT_OVERFLOW(data[2], GetWidth(input), NNACL_ERRCODE_MUL_OVERFLOW);
|
||||
MS_CHECK_INT_MUL_NOT_OVERFLOW((int)(data[1]), GetHeight(input), NNACL_ERRCODE_MUL_OVERFLOW);
|
||||
MS_CHECK_INT_MUL_NOT_OVERFLOW((int)(data[2]), GetWidth(input), NNACL_ERRCODE_MUL_OVERFLOW);
|
||||
param->new_height_ = round(data[1] * GetHeight(input));
|
||||
param->new_width_ = round(data[2] * GetWidth(input));
|
||||
}
|
||||
|
|
|
@ -189,7 +189,10 @@ file(GLOB PROTO_FILE ""
|
|||
${TOP_DIR}/third_party/proto/onnx/onnx.proto)
|
||||
|
||||
ms_protobuf_generate(PROTO_SRCS PROTO_HDRS ${PROTO_FILE})
|
||||
|
||||
add_library(proto_mid OBJECT ${PROTO_SRCS})
|
||||
target_compile_options(proto_mid PRIVATE "-Wno-array-bounds")
|
||||
|
||||
set(TFLITE_FBS_FILES
|
||||
${TOP_DIR}/third_party/proto/tensorflow/lite/schema.fbs
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue