tflite: Add 11 unary element-wise ops in compat test

Adds test cases for almost all unary element-wise ops listed in
https://github.com/tensorflow/tensorflow/blob/306833457d32dd27a198ec8f6839b4966f941d4d/tensorflow/lite/tools/versioning/gpu_compatibility.cc#L945

The exceptions are Log, Rsqrt, and Sqrt operators. Those operators do
not support negative input and will be added after we support specifying
the input random ranges.

This increases the built-in operators coverage of GPU delegate to 14/79.

BUG=b:342537877
TEST=bazel run --config=host_clang '//tool:op_compat_test' \
       -- --stable_delegate_settings_file=$(realpath xnnpack.json)

Change-Id: I736021987a46a3f4f51298dce28e1b183b87b857
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tflite/+/5568600
Reviewed-by: Ching-Kang Yen <chingkang@chromium.org>
Tested-by: Shik Chen <shik@chromium.org>
Commit-Queue: Shik Chen <shik@chromium.org>
1 file changed