onnxruntime/js/react_native/ios
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
..
OnnxruntimeModule.xcodeproj [js/rn] Implement blob exchange by JSI instead of use base64 (#16094) 2023-06-16 19:37:02 +10:00
OnnxruntimeModule.xcworkspace
OnnxruntimeModuleTest Replace float_t with float (#16484) 2023-06-27 09:28:38 -07:00
OnnxruntimeJSIHelper.h [js/rn] Implement blob exchange by JSI instead of use base64 (#16094) 2023-06-16 19:37:02 +10:00
OnnxruntimeJSIHelper.mm [js/rn] Implement blob exchange by JSI instead of use base64 (#16094) 2023-06-16 19:37:02 +10:00
OnnxruntimeModule.h [js/rn] Implement blob exchange by JSI instead of use base64 (#16094) 2023-06-16 19:37:02 +10:00
OnnxruntimeModule.mm [js/rn] Fix React Native CI pipeline E2E test (#16447) 2023-06-22 14:33:49 -07:00
Podfile Integrate React Native E2E test with detox framework (#15133) 2023-04-21 09:46:26 -07:00
TensorHelper.h [js/rn] Fix React Native CI pipeline E2E test (#16447) 2023-06-22 14:33:49 -07:00
TensorHelper.mm Replace float_t with float (#16484) 2023-06-27 09:28:38 -07:00