onnxruntime/js/react_native/ios/OnnxruntimeModuleTest
Michael Klimenko c3db1d3628
Replace float_t with float (#16484)
A couple of places in onnxruntime used `float_t` data type alias as an
alternative to `float`. However, this is not entirely correct, since
`float_t` is an implementation-defined type alias, which may be `float`,
`double`, `long double` or some other implementation-defined data type,
depending on the state of the internal `FLT_EVAL_METHOD` macro:
https://en.cppreference.com/w/c/numeric/math/float_t

On most major platforms and compilers (clang, GCC, MSVC) this is only a
cosmetic change and will not lead to any changes. However, icpx compiler
(and legacy icc) tends to substitute `float_t` with `long double`,
resulting in a linker error (unresolved reference) to the base onnx
library, that only contains the `ParseData` function for `float` and
`double` as in
[here](9264e09367/onnx/defs/tensor_proto_util.cc (L133-L134)).

Overall, this PR cleans up the implementation-defined behaviour and
enables building onnxruntime with icpx.
2023-06-27 09:28:38 -07:00
..
Resources [rn] Support UINT8 type for onnxruntime-react-native on iOS (#13210) 2022-10-06 11:35:25 -07:00
FakeRCTBlobManager.h [js/rn] Implement blob exchange by JSI instead of use base64 (#16094) 2023-06-16 19:37:02 +10:00
FakeRCTBlobManager.m [js/rn] Implement blob exchange by JSI instead of use base64 (#16094) 2023-06-16 19:37:02 +10:00
Info.plist ONNX Runtime React Native Library (#7564) 2021-05-11 10:34:40 -07:00
OnnxruntimeModuleTest.mm Replace float_t with float (#16484) 2023-06-27 09:28:38 -07:00
Readme.md Use full ORT package for onnxruntime-react-native. (#13037) 2022-09-23 07:20:03 +10:00
TensorHelperTest.mm Replace float_t with float (#16484) 2023-06-27 09:28:38 -07:00

Please see here for information on the test models.