https://www.tensorflow.org/lite/performance/gpu_advanced?hl=zh-cn#android_cc
bazel build -c opt --config android_arm64 tensorflow/lite/delegates/gpu:gl_delegate # for static library bazel build -c opt --config android_arm64 tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_gl.so # for dynamic library https://www.tensorflow.org/lite/performance/gpu_advanced?hl=en-us#android_cc
bazel build -c opt --config android_arm64 tensorflow/lite/delegates/gpu:delegate # for static library bazel build -c opt --config android_arm64 tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so # for dynamic library 不说白白花时间排错,连个该文档已过时的提示都没有,着实让人不适。
过了一下 20 种语言的文档,其他所有语言都是新的gpu:delegate,唯独简中文档是旧的gpu:gl_delegate。不清楚 TensorFlow 团队是不是会汉语的少,但是给个标识提示我文档是旧的应该不多吧。
提了一个文档 issue https://github.com/tensorflow/tensorflow/issues/57039
