Skip to content

Commit 8dad6d2

Browse files
facaiyseanpmorgan
authored andcommitted
CLN: reformat all codes (#105)
* CLN: reformat code
1 parent 3b7293d commit 8dad6d2

File tree

13 files changed

+41
-41
lines changed

13 files changed

+41
-41
lines changed

tensorflow_addons/activations/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ py_library(
66
name = "activations",
77
srcs = [
88
"__init__.py",
9-
"sparsemax.py"
9+
"sparsemax.py",
1010
],
1111
srcs_version = "PY2AND3",
1212
deps = [
13-
"//tensorflow_addons/utils:utils",
13+
"//tensorflow_addons/utils",
1414
],
1515
)
1616

tensorflow_addons/custom_ops/image/BUILD

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,25 @@ licenses(["notice"]) # Apache 2.0
22

33
package(default_visibility = ["//visibility:public"])
44

5-
65
cc_binary(
76
name = "_distort_image_ops.so",
87
srcs = [
98
"cc/kernels/adjust_hsv_in_yiq_op.cc",
109
"cc/kernels/adjust_hsv_in_yiq_op.h",
1110
"cc/ops/distort_image_ops.cc",
1211
],
12+
copts = [
13+
"-pthread",
14+
"-std=c++11",
15+
"-D_GLIBCXX_USE_CXX11_ABI=0",
16+
],
1317
linkshared = 1,
1418
deps = [
1519
"@local_config_tf//:libtensorflow_framework",
1620
"@local_config_tf//:tf_header_lib",
1721
],
18-
copts = ["-pthread", "-std=c++11", "-D_GLIBCXX_USE_CXX11_ABI=0"]
1922
)
2023

21-
2224
cc_binary(
2325
name = "_image_ops.so",
2426
srcs = [

tensorflow_addons/custom_ops/image/cc/kernels/image_projective_transform_op.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class ImageProjectiveTransformV2 : public OpKernel {
5555
Interpolation interpolation_;
5656

5757
public:
58-
explicit ImageProjectiveTransformV2(OpKernelConstruction* ctx) : OpKernel(ctx) {
58+
explicit ImageProjectiveTransformV2(OpKernelConstruction* ctx)
59+
: OpKernel(ctx) {
5960
string interpolation_str;
6061
OP_REQUIRES_OK(ctx, ctx->GetAttr("interpolation", &interpolation_str));
6162
if (interpolation_str == "NEAREST") {

tensorflow_addons/custom_ops/seq2seq/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ licenses(["notice"]) # Apache 2.0
22

33
package(default_visibility = ["//visibility:public"])
44

5-
65
cc_binary(
76
name = "_beam_search_ops.so",
87
srcs = [
@@ -21,4 +20,4 @@ cc_binary(
2120
"@local_config_tf//:libtensorflow_framework",
2221
"@local_config_tf//:tf_header_lib",
2322
],
24-
)
23+
)

tensorflow_addons/custom_ops/text/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ licenses(["notice"]) # Apache 2.0
22

33
package(default_visibility = ["//visibility:public"])
44

5-
65
cc_binary(
76
name = "_skip_gram_ops.so",
87
srcs = [

tensorflow_addons/image/BUILD

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ licenses(["notice"]) # Apache 2.0
22

33
package(default_visibility = ["//visibility:public"])
44

5-
65
py_library(
76
name = "image",
87
srcs = ([
@@ -13,7 +12,7 @@ py_library(
1312
data = [
1413
"//tensorflow_addons/custom_ops/image:_distort_image_ops.so",
1514
"//tensorflow_addons/custom_ops/image:_image_ops.so",
16-
"//tensorflow_addons/utils:utils",
15+
"//tensorflow_addons/utils",
1716
],
1817
srcs_version = "PY2AND3",
1918
)
@@ -25,10 +24,10 @@ py_test(
2524
"distort_image_ops_test.py",
2625
],
2726
main = "distort_image_ops_test.py",
27+
srcs_version = "PY2AND3",
2828
deps = [
2929
":image",
3030
],
31-
srcs_version = "PY2AND3"
3231
)
3332

3433
# TODO: use cuda_test later.

tensorflow_addons/layers/BUILD

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ py_library(
1414
],
1515
srcs_version = "PY2AND3",
1616
deps = [
17-
"//tensorflow_addons/utils:utils",
18-
"//tensorflow_addons/activations:activations",
17+
"//tensorflow_addons/activations",
18+
"//tensorflow_addons/utils",
1919
],
2020
)
2121

@@ -29,7 +29,7 @@ py_test(
2929
srcs_version = "PY2AND3",
3030
deps = [
3131
":layers",
32-
]
32+
],
3333
)
3434

3535
py_test(
@@ -55,18 +55,18 @@ py_test(
5555
srcs_version = "PY2AND3",
5656
deps = [
5757
":layers",
58-
]
58+
],
5959
)
6060

6161
py_test(
6262
name = "layers_normalizations_test",
63-
size= "small",
63+
size = "small",
6464
srcs = [
6565
"normalizations_test.py",
6666
],
6767
main = "normalizations_test.py",
6868
srcs_version = "PY2AND3",
6969
deps = [
70-
":layers",
71-
]
70+
":layers",
71+
],
7272
)

tensorflow_addons/losses/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ py_library(
1414
],
1515
srcs_version = "PY2AND3",
1616
deps = [
17-
"//tensorflow_addons/utils:utils",
18-
"//tensorflow_addons/activations:activations",
17+
"//tensorflow_addons/activations",
18+
"//tensorflow_addons/utils",
1919
],
2020
)
2121

@@ -39,10 +39,10 @@ py_test(
3939
"sparsemax_loss_test.py",
4040
],
4141
main = "sparsemax_loss_test.py",
42+
srcs_version = "PY2AND3",
4243
deps = [
4344
":losses",
4445
],
45-
srcs_version = "PY2AND3",
4646
)
4747

4848
py_test(

tensorflow_addons/optimizers/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ py_library(
1010
],
1111
srcs_version = "PY2AND3",
1212
deps = [
13-
"//tensorflow_addons/utils:utils",
13+
"//tensorflow_addons/utils",
1414
],
1515
)
1616

tensorflow_addons/seq2seq/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ licenses(["notice"]) # Apache 2.0
22

33
package(default_visibility = ["//visibility:public"])
44

5-
65
py_library(
76
name = "seq2seq",
87
srcs = [
@@ -19,7 +18,7 @@ py_library(
1918
],
2019
srcs_version = "PY2AND3",
2120
deps = [
22-
"//tensorflow_addons/utils:utils",
21+
"//tensorflow_addons/utils",
2322
],
2423
)
2524

0 commit comments

Comments
 (0)