STT-tensorflow/tensorflow/python/module/BUILD
Ran Chen db992d30bb Separate TPU variables into its own file
TPU code pulls in tensorflow.python.tpu.tpu which pulls a large number of
dependencies. It's easy to create cyclic dependencies.

PiperOrigin-RevId: 297060171
Change-Id: I8e09e7b8de9fc50e892502a480de8fffa378a1c5
2020-02-25 00:40:44 -08:00

35 lines
848 B
Python

load("//tensorflow:tensorflow.bzl", "tf_py_test")
package(
default_visibility = ["//tensorflow:internal"],
licenses = ["notice"], # Apache 2.0
)
exports_files(["LICENSE"])
py_library(
name = "module",
srcs = ["module.py"],
deps = [
"//tensorflow/python:framework_ops",
"//tensorflow/python:tf2",
"//tensorflow/python:util",
"//tensorflow/python:variables",
"//tensorflow/python/training/tracking",
"@six_archive//:six",
],
)
tf_py_test(
name = "module_test",
srcs = ["module_test.py"],
deps = [
":module",
"//tensorflow/python:client_testlib",
"//tensorflow/python:variables",
"//tensorflow/python/compat:v2_compat",
"//tensorflow/python/distribute:tpu_values",
"@absl_py//absl/testing:parameterized",
],
)