Add pybind for sanitizer constant to know if any of the sanitizers is enabled in python tests. PiperOrigin-RevId: 334649266 Change-Id: I4aa55310519dc2d9b121d4e6c4f33216c782092e
22 lines
469 B
Python
22 lines
469 B
Python
load("//tensorflow:tensorflow.bzl", "pybind_extension")
|
|
|
|
package(
|
|
default_visibility = [
|
|
"//visibility:public",
|
|
],
|
|
licenses = ["notice"], # Apache 2.0
|
|
)
|
|
|
|
pybind_extension(
|
|
name = "_pywrap_tensorflow_lite_sanitizers",
|
|
srcs = [
|
|
"sanitizers_pybind11.cc",
|
|
],
|
|
link_in_framework = True,
|
|
module_name = "_pywrap_tensorflow_lite_sanitizers",
|
|
deps = [
|
|
"//tensorflow/python:pybind11_lib",
|
|
"@pybind11",
|
|
],
|
|
)
|