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
93
94
95
96
97
98
99
100
|
# Description:
# Contains deprecated ops to calculate cross entropy.
licenses(["notice"]) # Apache 2.0
exports_files(["LICENSE"])
package(default_visibility = ["//visibility:public"])
load("//tensorflow:tensorflow.bzl", "py_test")
py_library(
name = "nn_py",
srcs = [
"__init__.py",
"python/__init__.py",
"python/ops/__init__.py",
"python/ops/alpha_dropout.py",
"python/ops/cross_entropy.py",
"python/ops/fwd_gradients.py",
"python/ops/sampling_ops.py",
"python/ops/scaled_softplus.py",
],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = [
"//tensorflow/python:array_ops",
"//tensorflow/python:dtypes",
"//tensorflow/python:embedding_ops",
"//tensorflow/python:framework_ops",
"//tensorflow/python:function",
"//tensorflow/python:gradients",
"//tensorflow/python:math_ops",
"//tensorflow/python:nn",
"//tensorflow/python:nn_ops",
"//tensorflow/python:random_ops",
"//tensorflow/python:tensor_shape",
"//tensorflow/python:tensor_util",
"//tensorflow/python:util",
],
)
py_test(
name = "alpha_dropout_test",
size = "small",
srcs = ["python/ops/alpha_dropout_test.py"],
srcs_version = "PY2AND3",
deps = [
":nn_py",
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:constant_op",
"//tensorflow/python:dtypes",
"//tensorflow/python:framework_ops",
"//tensorflow/python:nn",
"//tensorflow/python:random_ops",
],
)
py_test(
name = "fwd_gradients_test",
size = "small",
srcs = ["python/ops/fwd_gradients_test.py"],
srcs_version = "PY2AND3",
deps = [
":nn_py",
"//tensorflow/python:client_testlib",
"//tensorflow/python:constant_op",
"//tensorflow/python:math_ops",
],
)
py_test(
name = "sampling_ops_test",
size = "small",
srcs = ["python/ops/sampling_ops_test.py"],
srcs_version = "PY2AND3",
deps = [
":nn_py",
"//tensorflow/python:client_testlib",
"//tensorflow/python:constant_op",
"//tensorflow/python:dtypes",
"//tensorflow/python:framework_ops",
"//tensorflow/python:nn",
],
)
py_test(
name = "scaled_softplus_test",
size = "small",
srcs = ["python/ops/scaled_softplus_test.py"],
srcs_version = "PY2AND3",
deps = [
":nn_py",
"//tensorflow/python:client_testlib",
"//tensorflow/python:constant_op",
"//tensorflow/python:gradient_checker",
"//third_party/py/numpy",
],
)
|