Add gemmlowp to deps if profiling enabled with --copt=-DGEMMLOWP_PROFILING

PiperOrigin-RevId: 285023739
Change-Id: Iff889201d7137f2ef7088a2cd831c0fcc4bd8d14
This commit is contained in:
Advait Jain 2019-12-11 11:17:55 -08:00 committed by TensorFlower Gardener
parent f94d458f1a
commit 01113fbb6d
2 changed files with 11 additions and 3 deletions

View File

@ -15,6 +15,13 @@ exports_files(glob([
"models/testdata/*",
]))
config_setting(
name = "gemmlowp_profiling",
values = {
"copt": "-DGEMMLOWP_PROFILING",
},
)
config_setting(
name = "mips",
values = {

View File

@ -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(