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/*",
|
||||
]))
|
||||
|
||||
config_setting(
|
||||
name = "gemmlowp_profiling",
|
||||
values = {
|
||||
"copt": "-DGEMMLOWP_PROFILING",
|
||||
},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "mips",
|
||||
values = {
|
||||
|
@ -51,9 +51,10 @@ cc_library(
|
||||
name = "scoped_profiling_label_wrapper",
|
||||
hdrs = ["scoped_profiling_label_wrapper.h"],
|
||||
copts = tflite_copts(),
|
||||
# TODO(b/145820877): Add in a select statement once we can figure out a way
|
||||
# to make it play nicely with copybara.
|
||||
deps = ["@gemmlowp//:profiler"],
|
||||
deps = select({
|
||||
"//tensorflow/lite:gemmlowp_profiling": ["@gemmlowp//:profiler"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
)
|
||||
|
||||
cc_library(
|
||||
|
Loading…
Reference in New Issue
Block a user