aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/kernel_methods/BUILD
blob: 87c2dcd89b63fa9f92d93c87abce91fd3460d44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Description:
#   Contains kernel methods for TensorFlow.

licenses(["notice"])  # Apache 2.0

exports_files(["LICENSE"])

package(default_visibility = ["//tensorflow:__subpackages__"])

load("//tensorflow:tensorflow.bzl", "py_test")

py_library(
    name = "kernel_methods",
    srcs = [
        "__init__.py",
        "python/kernel_estimators.py",
        "python/losses.py",
        "python/mappers/random_fourier_features.py",
    ],
    srcs_version = "PY2AND3",
    deps = [
        ":dense_kernel_mapper_py",
        "//tensorflow/contrib/layers:layers_py",
        "//tensorflow/contrib/learn",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:check_ops",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:nn_ops",
        "//tensorflow/python:platform",
        "//tensorflow/python:util",
        "//tensorflow/python/ops/losses",
        "//third_party/py/numpy",
        "@six_archive//:six",
    ],
)

py_library(
    name = "dense_kernel_mapper_py",
    srcs = ["python/mappers/dense_kernel_mapper.py"],
    srcs_version = "PY2AND3",
    deps = ["@six_archive//:six"],
)

py_test(
    name = "random_fourier_features_test",
    srcs = ["python/mappers/random_fourier_features_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":dense_kernel_mapper_py",
        ":kernel_methods",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:nn",
        "//tensorflow/python:platform_test",
        "//tensorflow/python:random_ops",
    ],
)

py_test(
    name = "kernel_estimators_test",
    srcs = ["python/kernel_estimators_test.py"],
    srcs_version = "PY2AND3",
    tags = ["notsan"],
    deps = [
        ":kernel_methods",
        "//tensorflow/contrib/layers:layers_py",
        "//tensorflow/contrib/learn",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:platform_test",
        "//tensorflow/python:sparse_tensor",
        "//third_party/py/numpy",
    ],
)

py_test(
    name = "losses_test",
    srcs = ["python/losses_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":kernel_methods",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//third_party/py/numpy",
    ],
)