Hardcoded end-to-end benchmark on MobileNet v1 in QS8 format
- Weights are random and quantization parameters are mocked
- In lieu of QS8 Global Average Pooling, QU8 version is used
PiperOrigin-RevId: 324936126
diff --git a/BUILD.bazel b/BUILD.bazel
index a5a7c46..bd47bfa 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -4139,6 +4139,18 @@
)
cc_library(
+ name = "qs8_mobilenet_v1",
+ srcs = ["models/qs8-mobilenet-v1.cc"],
+ hdrs = ["models/models.h"],
+ copts = xnnpack_std_cxxopts(),
+ linkstatic = True,
+ deps = [
+ ":XNNPACK",
+ "@pthreadpool",
+ ],
+)
+
+cc_library(
name = "fp32_mobilenet_v2",
srcs = ["models/fp32-mobilenet-v2.cc"],
hdrs = ["models/models.h"],
@@ -4229,6 +4241,7 @@
":fp32_mobilenet_v2",
":fp32_mobilenet_v3_large",
":fp32_mobilenet_v3_small",
+ ":qs8_mobilenet_v1",
"@pthreadpool",
],
)