DOC=https://docs.google.com/document/d/1Xk21sJBxtJAUvvLtQSYopiBdHe_8wUzv4kiICVYz8Jg/edit#heading=h.ng49b3y8n8x4 PiperOrigin-RevId: 288577048 Change-Id: Icdeb43ed4ec4606fdcd2da2930d5018042e72a4c
53 lines
1.1 KiB
Python
53 lines
1.1 KiB
Python
load("//tensorflow:tensorflow.bzl", "tf_py_test")
|
|
|
|
package(
|
|
licenses = ["notice"], # Apache 2.0
|
|
)
|
|
|
|
exports_files(["LICENSE"])
|
|
|
|
py_library(
|
|
name = "v2_compat",
|
|
srcs = ["v2_compat.py"],
|
|
srcs_version = "PY2AND3",
|
|
visibility = ["//tensorflow:internal"],
|
|
deps = [
|
|
"//tensorflow/python:control_flow_v2_toggles",
|
|
"//tensorflow/python:tf2",
|
|
"//tensorflow/python:util",
|
|
"//tensorflow/python/eager:monitoring",
|
|
],
|
|
)
|
|
|
|
py_library(
|
|
name = "compat",
|
|
srcs = ["compat.py"],
|
|
srcs_version = "PY2AND3",
|
|
visibility = ["//tensorflow:internal"],
|
|
deps = [
|
|
"//tensorflow/python:util",
|
|
],
|
|
)
|
|
|
|
tf_py_test(
|
|
name = "compat_test",
|
|
size = "small",
|
|
srcs = ["compat_test.py"],
|
|
tags = ["nofwdcompat"],
|
|
deps = [
|
|
":compat",
|
|
"//tensorflow/python:client_testlib",
|
|
],
|
|
)
|
|
|
|
tf_py_test(
|
|
name = "disable_v2_behavior_test",
|
|
size = "small",
|
|
srcs = ["disable_v2_behavior_test.py"],
|
|
deps = [
|
|
":v2_compat",
|
|
"//tensorflow/python:client_testlib",
|
|
"//tensorflow/python:framework",
|
|
],
|
|
)
|