Make TF Lite compile after rebase
The merge CL that is a parent of this one was done by accepting all
incoming changes and addressing build errors afterwards. Here is what
was done to make TF Lite and NNAPI compile after this update:
* bfloat16 implementation was moved to eigen upstream. I've restored it
in the original place, so that we don't have to upgrade eigen to an
unstable version yet.
* Disabled log sinks, reverted to old implementation of
LogMessage::GenerateLogMessage()
* Added new source files to Android.bp files
* Switched code to use farmhash from libtextclassifier
* Switched absl::optional to std::optional
* Added a genrule for lite/schema/mutable/schema_generated.h
* Ruy was moved to its own project external/ruy
* Temporary disabled registration of RFFT2D op until the corresponding
fft library is imported to Android
Bug: 178609672
Test: mma, NeuralNetworksTest_static
Change-Id: I97088e763bf430390e5becfee5bb937088613b18
diff --git a/Android.bp b/Android.bp
index dde21f8..7828d88 100644
--- a/Android.bp
+++ b/Android.bp
@@ -61,11 +61,19 @@
host_supported: true,
sdk_version: "current",
apex_available: [
+ "//apex_available:platform",
+ "com.android.extservices",
"com.android.neuralnetworks",
"test_com.android.neuralnetworks",
- "com.android.extservices",
- "//apex_available:platform",
],
}
+genrule {
+ name: "libtflite_mutable_schema",
+ tools: ["flatc"],
+ cmd: "$(location flatc) --cpp --no-union-value-namespacing --gen-object-api --gen-mutable --keep-prefix -o $$(dirname $(out)) $(in)",
+ srcs: [ "tensorflow/lite/schema/schema.fbs" ],
+ out: [ "tensorflow/lite/schema/mutable/schema_generated.h" ],
+}
+
subdirs = ["tensorflow/lite"]