Add gemmlowp to deps if profiling enabled with --copt=-DGEMMLOWP_PROFILING
PiperOrigin-RevId: 285023739 Change-Id: Iff889201d7137f2ef7088a2cd831c0fcc4bd8d14
This commit is contained in:
parent
f94d458f1a
commit
01113fbb6d
@ -15,6 +15,13 @@ exports_files(glob([
|
|||||||
"models/testdata/*",
|
"models/testdata/*",
|
||||||
]))
|
]))
|
||||||
|
|
||||||
|
config_setting(
|
||||||
|
name = "gemmlowp_profiling",
|
||||||
|
values = {
|
||||||
|
"copt": "-DGEMMLOWP_PROFILING",
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "mips",
|
name = "mips",
|
||||||
values = {
|
values = {
|
||||||
|
@ -51,9 +51,10 @@ cc_library(
|
|||||||
name = "scoped_profiling_label_wrapper",
|
name = "scoped_profiling_label_wrapper",
|
||||||
hdrs = ["scoped_profiling_label_wrapper.h"],
|
hdrs = ["scoped_profiling_label_wrapper.h"],
|
||||||
copts = tflite_copts(),
|
copts = tflite_copts(),
|
||||||
# TODO(b/145820877): Add in a select statement once we can figure out a way
|
deps = select({
|
||||||
# to make it play nicely with copybara.
|
"//tensorflow/lite:gemmlowp_profiling": ["@gemmlowp//:profiler"],
|
||||||
deps = ["@gemmlowp//:profiler"],
|
"//conditions:default": [],
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
|
Loading…
Reference in New Issue
Block a user