1package(default_visibility = ["//tensorflow:internal"]) 2 3licenses(["notice"]) # Apache 2.0 4 5exports_files(["LICENSE"]) 6 7load("//tensorflow:tensorflow.bzl", "py_test") 8 9py_library( 10 name = "nest", 11 srcs = ["nest.py"], 12 srcs_version = "PY2AND3", 13 deps = [ 14 "//tensorflow/python:util", 15 "@six_archive//:six", 16 ], 17) 18 19py_test( 20 name = "nest_test", 21 size = "small", 22 srcs = ["nest_test.py"], 23 srcs_version = "PY2AND3", 24 deps = [ 25 ":nest", 26 "//tensorflow/python:array_ops", 27 "//tensorflow/python:client_testlib", 28 "//tensorflow/python:framework_for_generated_wrappers", 29 "//tensorflow/python:math_ops", 30 "//third_party/py/numpy", 31 ], 32) 33 34py_library( 35 name = "sparse", 36 srcs = ["sparse.py"], 37 srcs_version = "PY2AND3", 38 deps = [ 39 ":nest", 40 "//tensorflow/python:dtypes", 41 "//tensorflow/python:ops", 42 "//tensorflow/python:sparse_ops", 43 "//tensorflow/python:sparse_tensor", 44 "//tensorflow/python:tensor_shape", 45 "//tensorflow/python:util", 46 "@six_archive//:six", 47 ], 48) 49 50py_test( 51 name = "sparse_test", 52 size = "small", 53 srcs = ["sparse_test.py"], 54 srcs_version = "PY2AND3", 55 deps = [ 56 ":nest", 57 ":sparse", 58 "//tensorflow/python:client_testlib", 59 "//tensorflow/python:dtypes", 60 "//tensorflow/python:sparse_tensor", 61 "//tensorflow/python:tensor_shape", 62 ], 63) 64 65py_library( 66 name = "convert", 67 srcs = ["convert.py"], 68 srcs_version = "PY2AND3", 69 deps = [ 70 "//tensorflow/python:constant_op", 71 "//tensorflow/python:dtypes", 72 "//tensorflow/python:framework_ops", 73 ], 74) 75 76py_test( 77 name = "convert_test", 78 size = "small", 79 srcs = ["convert_test.py"], 80 srcs_version = "PY2AND3", 81 deps = [ 82 ":convert", 83 "//tensorflow/python:client_testlib", 84 "//tensorflow/python:framework_for_generated_wrappers", 85 "//tensorflow/python:util", 86 ], 87) 88 89filegroup( 90 name = "all_files", 91 srcs = glob( 92 ["**/*"], 93 exclude = [ 94 "**/METADATA", 95 "**/OWNERS", 96 ], 97 ), 98 visibility = ["//tensorflow:__subpackages__"], 99) 100