Follow up to #43156 Based on https://github.com/bazelbuild/bazel/issues/12059#issuecomment-725641997 exec_tools might no longer be needed and hence can be replaced by tools. This fixes various build failures caused by missing environment variables in environments where they are required, e.g. using custom compilers. |
||
---|---|---|
.. | ||
android_info.cc | ||
android_info.h | ||
BUILD | ||
convert_binary_to_cc_source.py | ||
database.fbs | ||
devicedb_test.cc | ||
devicedb-sample.json | ||
devicedb.cc | ||
devicedb.h | ||
gpu_compatibility_test.cc | ||
gpu_compatibility.bin | ||
gpu_compatibility.cc | ||
gpu_compatibility.h | ||
json_to_fb.cc | ||
README.md | ||
variables.h |
GPU delegate compatibility database
This package provides data and code for deciding if the GPU delegate is supported on a specific Android device.
Customizing the database
- Convert from checked-in flatbuffer to json by running
flatc -t --raw-binary --strict-json database.fbs -- gpu_compatibility.bin
- Edit the json
- Convert from json to flatbuffer
flatc -b database.fbs -- gpu_compatibility.json
- Rebuild ../../../java:tensorflow-lite-gpu