These abseil deps aren't critical, so remove them to avoid potential
conflicts with client libraries that also have abseil deps.
PiperOrigin-RevId: 314831735
Change-Id: I793947aa45e37421df6eaa46fa00d5cb8250bfcb
The motivation is that having source files in the repository root runs into a number of corner cases with copybara setups and with external CMake build systems, so enclosing all code in ruy/ avoids that while generally making our setup much more similar to that of other related projects (TensorFlow, IREE).
PiperOrigin-RevId: 303448881
Change-Id: Id099055cba4d3c50ae60171d645614b57a8d3ee7
There can be functions beyond round() that aren't present within the std::
namespace depending on libstdc++ version. This CL adds an indirection layer
using a new TF_MICRO_USE_GLOBAL_CMATH_FUNCTIONS flag to select these functions
and converts TfLiteRound() to use this layer.
Other similar indirections will be added in future CLs.
PiperOrigin-RevId: 303425632
Change-Id: Idfe14924329827f71742ab6aedfd6ead9bcb0dbb
This change fixes the issue for missing min_runtime_version in flatbuffers exported by MLIR converter. Specifically:
*Export `min_runtime_version` in metadata of flatbuffer (fixed-length byte array).
*Update all related mlir tests to have metadata.
PiperOrigin-RevId: 299894972
Change-Id: Ic79f3ab05b593882362f5baf62493861961acbe3
Current the visualization script for TensorFlow Lite files only works if you build through Bazel. To make it more accessible, this change uses Flatbuffer's new Python interface to extract the information from the file, rather than calling out to an external tool. It also adds some tests.
A lot of the changes here are related to upgrading to the latest version of Flatbuffers, which has an impact on other parts of the code.
PiperOrigin-RevId: 291255530
Change-Id: I28a64a182e6197a58926d02c41988e4791c60fce
Some of these double promotion is not obvious as va_args implicitly promotes float to double.
PiperOrigin-RevId: 290926630
Change-Id: Iea51ea6aea069d1b8dcd43f6ad056f3e54a28157
Current the visualization script for TensorFlow Lite files only works if you build through Bazel. To make it more accessible, this change uses Flatbuffer's new Python interface to extract the information from the file, rather than calling out to an external tool. It also adds some tests.
A lot of the changes here are related to upgrading to the latest version of Flatbuffers, whi...
PiperOrigin-RevId: 290887928
Change-Id: I90403c1f4233f472ee5d7c4d21eed8233cb7d008
Some of these double promotion is not obvious as va_args implicitly promotes float to double.
PiperOrigin-RevId: 290883516
Change-Id: I23fc883afaac7876f881c85f15d5f21dd7bf4f43
Some of these double promotion is not obvious as va_args implicitly promotes float to double.
PiperOrigin-RevId: 290881894
Change-Id: I58a67bb4770e5a5a1a2ccfda59de515625e91df1
Current the visualization script for TensorFlow Lite files only works if you build through Bazel. To make it more accessible, this change uses Flatbuffer's new Python interface to extract the information from the file, rather than calling out to an external tool. It also adds some tests.
A lot of the changes here are related to upgrading to the latest version of Flatbuffers, which has an impact on other parts of the code.
PiperOrigin-RevId: 290788860
Change-Id: I4db3442110c48e01da2b5696b693562c806735fd
The this op takes a built-in option `tolerance`, and if the error of the two
operands is larger than this threshold value, a failure will return and the
error message will display the mismatched location.
NO_IFTTT=this is the first time the op is added, so by default it is in version 1.
PiperOrigin-RevId: 285299738
Change-Id: I93e33303d92d4ccdfa7b47f25423cb5dccb27598
This shim accepts a flag, `build_for_embedded`, which enables additional rules besides `native.cc_library` to build the sources specified in the TFLM build graph.
PiperOrigin-RevId: 285291476
Change-Id: Ie65a81cff5083b32c5c3f84845c26b02060b481f
Remove the "override" that did this already in hybrid LSTM.
The Eigen implementation has slightly worse accuracy, but is implemented using SIMD.
PiperOrigin-RevId: 282857162
Change-Id: Iddd383d163773e8ca72ee51e02d2cb7cb249a82f
The C types in lite/c/c_api_internal.h are not actually internal,
rather, they are common types used throughout the C++ and C APIs.
Rename the header accordingly.
PiperOrigin-RevId: 282494601
Change-Id: Ia784f35724d774db256ffcbbcdc5bb00e6574417