diff options
author | Gunhan Gulsoy <gunan@google.com> | 2018-09-25 17:25:56 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-25 17:29:49 -0700 |
commit | f97610daf89572e52912ddc5bf87576cc9e82f66 (patch) | |
tree | 87a2478419f85b19bf84c096c2aaf6e192f59d0d /tensorflow/tensorflow.bzl | |
parent | 05d103bf25110157c34b9ea6420061a23aa6d4ec (diff) |
Fix dynamic kernels dependencies for python build and test rules.
Bazel does not allow python rules to directly depend on c++ rules.
So I have to separately manage static dependencies, unfortunately avoiding
"kernels" option for now.
PiperOrigin-RevId: 214532631
Diffstat (limited to 'tensorflow/tensorflow.bzl')
-rw-r--r-- | tensorflow/tensorflow.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl index 689679c838..7ddaf7806e 100644 --- a/tensorflow/tensorflow.bzl +++ b/tensorflow/tensorflow.bzl @@ -1677,7 +1677,7 @@ def py_test(deps = [], data = [], kernels = [], **kwargs): deps = select({ "//conditions:default": deps, clean_dep("//tensorflow:no_tensorflow_py_deps"): [], - }) + tf_binary_dynamic_kernel_deps(kernels), + }), data = data + select({ "//conditions:default": [], clean_dep("//tensorflow:no_tensorflow_py_deps"): ["//tensorflow/tools/pip_package:win_pip_package_marker"], |