36 lines
968 B
Python
36 lines
968 B
Python
# Description: Sparse CSR support for TensorFlow.
|
|
load("//tensorflow:tensorflow.bzl", "tf_gen_op_wrapper_py")
|
|
|
|
package(
|
|
default_visibility = ["//tensorflow:internal"],
|
|
licenses = ["notice"], # Apache 2.0
|
|
)
|
|
|
|
tf_gen_op_wrapper_py(
|
|
name = "gen_sparse_csr_matrix_ops",
|
|
out = "gen_sparse_csr_matrix_ops.py",
|
|
api_def_srcs = ["//tensorflow/core/api_def:base_api_def"],
|
|
visibility = [
|
|
"//learning/brain/python/ops:__pkg__",
|
|
"//tensorflow/compiler/tests:__pkg__",
|
|
"//tensorflow/contrib/quantization:__pkg__",
|
|
"//tensorflow/python/kernel_tests:__pkg__",
|
|
],
|
|
deps = ["//tensorflow/core:sparse_csr_matrix_ops_op_lib"],
|
|
)
|
|
|
|
py_library(
|
|
name = "sparse",
|
|
srcs = [
|
|
"__init__.py",
|
|
"sparse.py",
|
|
"sparse_csr_matrix_grad.py",
|
|
"sparse_csr_matrix_ops.py",
|
|
],
|
|
srcs_version = "PY2AND3",
|
|
deps = [
|
|
":gen_sparse_csr_matrix_ops",
|
|
"//third_party/py/numpy",
|
|
],
|
|
)
|