BUILD 112.1 KB
Newer Older
1 2
# Tests of TensorFlow kernels written using the Python API.

3
load("//tensorflow:tensorflow.bzl", "sycl_py_test", "tf_custom_op_library", "tf_py_test")
4 5
load("//tensorflow:tensorflow.bzl", "cuda_py_test")

6 7
package(
    default_visibility = ["//tensorflow:internal"],
8
    licenses = ["notice"],  # Apache 2.0
9 10
)

P
Penporn Koanantakool 已提交
11
# CPU-only tests should use tf_py_test, GPU tests use cuda_py_test
12 13 14 15 16 17 18
# Please avoid the py_tests and cuda_py_tests (plural) while we
# fix the shared/overbroad dependencies.

tf_py_test(
    name = "as_string_op_test",
    size = "small",
    srcs = ["as_string_op_test.py"],
19
    additional_deps = [
20
        "//third_party/py/numpy",
21 22 23 24 25
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:string_ops",
    ],
J
Jonathan Hseu 已提交
26
    tags = ["no_windows"],
27 28 29 30 31 32
)

tf_py_test(
    name = "attention_ops_test",
    size = "small",
    srcs = ["attention_ops_test.py"],
33
    additional_deps = [
34
        "//third_party/py/numpy",
35 36 37 38 39
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:image_ops",
    ],
40 41 42 43
)

tf_py_test(
    name = "barrier_ops_test",
E
Eugene Brevdo 已提交
44
    size = "medium",  # NOTE(ebrevdo): This test is NOT small.
45
    srcs = ["barrier_ops_test.py"],
46
    additional_deps = [
47
        "//third_party/py/numpy",
48 49 50 51 52
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
53
    shard_count = 20,
Y
Yanan Cao 已提交
54 55
    # TODO(b/129706424): Re-enable this test on Mac.
    tags = ["no_mac"],
56 57 58 59 60 61
)

tf_py_test(
    name = "base64_ops_test",
    size = "small",
    srcs = ["base64_ops_test.py"],
62
    additional_deps = [
63
        "//third_party/py/numpy",
64 65 66 67 68 69 70
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:string_ops",
    ],
F
Frank Chen 已提交
71
    tags = ["nomac"],  # b/35468214
72 73
)

74 75 76 77
tf_py_test(
    name = "batch_gather_op_test",
    srcs = ["batch_gather_op_test.py"],
    additional_deps = [
78
        "@absl_py//absl/testing:parameterized",
79 80 81 82 83
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:dtypes",
    ],
84 85 86
    tags = [
        "no_gpu",  # b/127001953
    ],
87 88
)

89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
tf_py_test(
    name = "batch_scatter_ops_test",
    srcs = ["batch_scatter_ops_test.py"],
    additional_deps = [
        "//tensorflow/python/eager:context",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:gradients",
        "//tensorflow/python:resource_variable_ops",
        "//tensorflow/python:session",
        "//tensorflow/python:state_ops",
        "//tensorflow/python:variables",
    ],
)

108 109 110 111
tf_py_test(
    name = "bcast_ops_test",
    size = "small",
    srcs = ["bcast_ops_test.py"],
112 113 114 115
    additional_deps = [
        "//tensorflow/python:array_ops_gen",
        "//tensorflow/python:client_testlib",
    ],
116 117
)

118 119 120 121 122
cuda_py_test(
    name = "list_ops_test",
    size = "small",
    srcs = ["list_ops_test.py"],
    additional_deps = [
123
        "@absl_py//absl/testing:parameterized",
124
        "//third_party/py/numpy",
125
        "//tensorflow/python:array_ops",
126
        "//tensorflow/python:gradients_impl",
127
        "//tensorflow/python:list_ops",
128 129
        "//tensorflow/python:math_ops",
        "//tensorflow/python:tensor_shape",
130
        "//tensorflow/python/eager:context",
131
        "//tensorflow/python/eager:def_function",
132 133 134 135 136
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:client_testlib",
    ],
    grpc_enabled = True,
137
    tags = ["no_rocm"],
138 139
)

140
cuda_py_test(
141 142 143
    name = "benchmark_test",
    size = "small",
    srcs = ["benchmark_test.py"],
144
    additional_deps = [
145
        "//tensorflow/python:client",
146 147 148 149 150
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:platform",
        "//tensorflow/python:platform_benchmark",
    ],
J
Jonathan Hseu 已提交
151
    tags = ["no_windows"],
152 153
)

154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
cuda_py_test(
    name = "reduce_benchmark_test",
    srcs = ["reduce_benchmark_test.py"],
    additional_deps = [
        "//tensorflow/python/eager:backprop",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python/eager:context",
        "//tensorflow/python:framework",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:gradients",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:platform",
        "//tensorflow/python:platform_benchmark",
    ],
)

170
cuda_py_test(
D
Dan Ringwalt 已提交
171 172 173 174 175 176 177 178
    name = "bincount_op_test",
    size = "small",
    srcs = ["bincount_op_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
179
    tags = ["no_windows_gpu"],
D
Dan Ringwalt 已提交
180 181
)

182 183 184 185
tf_py_test(
    name = "candidate_sampler_ops_test",
    size = "small",
    srcs = ["candidate_sampler_ops_test.py"],
186
    additional_deps = [
187
        "//third_party/py/numpy",
188 189 190 191 192 193
        "//tensorflow/python:array_ops",
        "//tensorflow/python:candidate_sampling_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
    ],
194 195
)

196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
tf_py_test(
    name = "checkpoint_ops_test",
    size = "medium",
    srcs = ["checkpoint_ops_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:checkpoint_ops_gen",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:partitioned_variables",
        "//tensorflow/python:platform",
        "//tensorflow/python:training",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
    ],
)

218
cuda_py_test(
219
    name = "cholesky_op_test",
220
    size = "medium",
221
    srcs = ["cholesky_op_test.py"],
222
    additional_deps = [
223
        "//third_party/py/numpy",
224 225 226 227 228 229
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:platform",
230
        "//tensorflow/python/ops/linalg",
231
    ],
232
    shard_count = 5,
S
Smit Hinsu 已提交
233
    tags = [
234
        "no_rocm",  # TODO(rocm): feature not supported on ROCm platform
235
        "no_windows_gpu",
S
Smit Hinsu 已提交
236 237
        "nomsan",  # TODO(b/131773093): Re-enable.
    ],
238 239 240 241 242 243
)

tf_py_test(
    name = "clip_ops_test",
    size = "small",
    srcs = ["clip_ops_test.py"],
244 245 246 247 248
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:clip_ops",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
249 250 251 252
    tags = [
        "no_gpu",  # b/127001953
        "no_windows",
    ],
253 254
)

255 256 257 258
tf_py_test(
    name = "conditional_accumulator_test",
    size = "small",
    srcs = ["conditional_accumulator_test.py"],
259
    additional_deps = [
260
        "//third_party/py/numpy",
261 262 263 264 265 266 267 268 269
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:state_ops",
        "//tensorflow/python:variables",
    ],
270 271
)

272 273 274 275
tf_py_test(
    name = "ctc_decoder_ops_test",
    size = "small",
    srcs = ["ctc_decoder_ops_test.py"],
276
    additional_deps = [
277
        "//third_party/py/numpy",
278 279 280 281 282
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:ctc_ops",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
283 284
)

285
cuda_py_test(
286
    name = "ctc_loss_op_test",
287
    size = "medium",
288
    srcs = ["ctc_loss_op_test.py"],
289
    additional_deps = [
290
        "//third_party/py/numpy",
291 292 293 294 295 296
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:ctc_ops",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
    ],
297 298
)

299 300 301 302 303
py_library(
    name = "cudnn_deterministic_base",
    srcs = ["cudnn_deterministic_base.py"],
    deps = [
        "//tensorflow/python:client_testlib",
304 305 306
        "//tensorflow/python:constant_op",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:nn_ops",
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
        "//third_party/py/numpy",
    ],
)

cuda_py_test(
    name = "cudnn_deterministic_ops_test",
    size = "small",
    srcs = ["cudnn_deterministic_ops_test.py"],
    additional_deps = [
        ":cudnn_deterministic_base",
    ],
    xla_enable_strict_auto_jit = True,
)

cuda_py_test(
    name = "cudnn_deterministic_test",
    size = "small",
    srcs = ["cudnn_deterministic_test.py"],
    additional_deps = [
        ":cudnn_deterministic_base",
327 328 329
    ],
)

330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
cuda_py_test(
    name = "cumulative_logsumexp_test",
    size = "medium",
    srcs = ["cumulative_logsumexp_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:map_fn",
        "//tensorflow/python:array_ops",
    ],
)

345 346 347 348
tf_py_test(
    name = "decode_csv_op_test",
    size = "small",
    srcs = ["decode_csv_op_test.py"],
349
    additional_deps = [
350
        "//third_party/py/numpy",
351
        "//tensorflow/python/eager:context",
352
        "//tensorflow/python:client_testlib",
353 354
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_test_lib",
355 356
        "//tensorflow/python:parsing_ops",
    ],
357 358 359 360 361 362
)

tf_py_test(
    name = "decode_png_op_test",
    size = "small",
    srcs = ["decode_png_op_test.py"],
363 364 365 366 367 368 369
    additional_deps = [
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:image_ops",
        "//tensorflow/python:nn_grad",
    ],
370 371
)

372 373 374 375 376 377 378 379 380 381 382 383 384
tf_py_test(
    name = "decode_bmp_op_test",
    size = "small",
    srcs = ["decode_bmp_op_test.py"],
    additional_deps = [
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:image_ops",
        "//tensorflow/python:nn_grad",
    ],
)

385 386 387 388 389 390 391 392 393 394 395 396
tf_py_test(
    name = "decode_jpeg_op_test",
    srcs = ["decode_jpeg_op_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:image_ops",
        "//tensorflow/python:platform",
    ],
    data = ["//tensorflow/core:image_testdata"],
)

A
Andrew Harp 已提交
397 398 399 400
tf_py_test(
    name = "decode_image_op_test",
    size = "small",
    srcs = ["decode_image_op_test.py"],
401
    additional_deps = [
402
        "//third_party/py/numpy",
403 404 405 406 407 408
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:image_ops",
        "//tensorflow/python:io_ops",
        "//tensorflow/python:nn_grad",
    ],
A
Andrew Harp 已提交
409 410 411
    data = ["//tensorflow/core:image_testdata"],
)

412 413 414 415
tf_py_test(
    name = "decode_raw_op_test",
    size = "small",
    srcs = ["decode_raw_op_test.py"],
416
    additional_deps = [
417
        "//third_party/py/numpy",
418 419 420 421 422
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:parsing_ops",
    ],
423 424
)

425 426 427 428 429 430 431 432 433 434 435 436 437
tf_py_test(
    name = "decode_compressed_op_test",
    size = "small",
    srcs = ["decode_compressed_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:parsing_ops",
    ],
)

438
cuda_py_test(
439 440 441
    name = "determinant_op_test",
    size = "small",
    srcs = ["determinant_op_test.py"],
442
    additional_deps = [
443
        "//third_party/py/numpy",
444 445 446 447
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
    ],
448 449
)

450 451 452 453
tf_py_test(
    name = "draw_bounding_box_op_test",
    size = "small",
    srcs = ["draw_bounding_box_op_test.py"],
454
    additional_deps = [
455
        "//third_party/py/numpy",
456 457 458 459 460 461
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:image_ops",
        "//tensorflow/python:math_ops",
    ],
462 463
)

464 465 466 467
tf_py_test(
    name = "edit_distance_op_test",
    size = "small",
    srcs = ["edit_distance_op_test.py"],
468
    additional_deps = [
469
        "//third_party/py/numpy",
470 471 472 473 474
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
475 476 477 478 479 480
)

tf_py_test(
    name = "fifo_queue_test",
    size = "small",
    srcs = ["fifo_queue_test.py"],
481
    additional_deps = [
482
        "//third_party/py/numpy",
483 484
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
485
        "//tensorflow/python:client",
486 487 488 489 490 491
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:util",
    ],
492 493
)

494 495 496 497 498 499 500 501 502
tf_py_test(
    name = "fingerprint_op_test",
    size = "small",
    srcs = ["fingerprint_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
    ],
)

503 504 505 506
tf_py_test(
    name = "fractional_avg_pool_op_test",
    size = "small",
    srcs = ["fractional_avg_pool_op_test.py"],
507
    additional_deps = [
508
        "//third_party/py/numpy",
509
        "//tensorflow/python:array_ops",
510 511 512 513 514 515
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
        "//tensorflow/python:nn_ops_gen",
    ],
516
    shard_count = 5,
517 518 519 520 521 522
)

tf_py_test(
    name = "fractional_max_pool_op_test",
    size = "small",
    srcs = ["fractional_max_pool_op_test.py"],
523
    additional_deps = [
524
        "//third_party/py/numpy",
525
        "//tensorflow/python:array_ops",
526 527 528 529 530 531
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
        "//tensorflow/python:nn_ops_gen",
    ],
532
    shard_count = 5,
533 534 535 536 537 538
)

tf_py_test(
    name = "identity_op_py_test",
    size = "small",
    srcs = ["identity_op_py_test.py"],
539
    additional_deps = [
540
        "//third_party/py/numpy",
541 542 543 544 545 546
        "//tensorflow/python:array_ops",
        "//tensorflow/python:array_ops_gen",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:variables",
    ],
547 548
)

549 550 551 552 553 554 555 556 557 558 559 560 561 562
tf_py_test(
    name = "identity_n_op_py_test",
    size = "small",
    srcs = ["identity_n_op_py_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:array_ops_gen",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:variables",
    ],
)

563
cuda_py_test(
564 565 566
    name = "in_topk_op_test",
    size = "small",
    srcs = ["in_topk_op_test.py"],
567
    additional_deps = [
568
        "//third_party/py/numpy",
569 570 571 572
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:nn_ops",
    ],
573 574
)

575 576
tf_py_test(
    name = "record_input_test",
A
A. Unique TensorFlower 已提交
577
    size = "medium",
578 579 580 581 582 583 584 585 586
    srcs = ["record_input_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:io_ops",
        "//tensorflow/python:util",
    ],
)

587 588 589 590
tf_py_test(
    name = "io_ops_test",
    size = "small",
    srcs = ["io_ops_test.py"],
591 592 593 594 595
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:io_ops",
        "//tensorflow/python:util",
    ],
596 597 598 599 600 601
)

tf_py_test(
    name = "listdiff_op_test",
    size = "small",
    srcs = ["listdiff_op_test.py"],
602
    additional_deps = [
603
        "//third_party/py/numpy",
604 605 606 607 608
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:util",
    ],
609 610
)

611 612 613 614 615 616 617 618 619 620 621 622 623 624 625
tf_py_test(
    name = "logging_ops_logging_level_test",
    size = "small",
    srcs = ["logging_ops_logging_level_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:logging_ops",
    ],
    tags = [
        "no_windows",
    ],
)

G
Gaurav Jain 已提交
626
cuda_py_test(
627 628 629
    name = "logging_ops_test",
    size = "small",
    srcs = ["logging_ops_test.py"],
630 631 632 633
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:framework_for_generated_wrappers",
634
        "//tensorflow/python:framework_test_lib",
635 636 637 638
        "//tensorflow/python:gradients",
        "//tensorflow/python:logging_ops",
        "//tensorflow/python:math_ops",
    ],
639 640
)

641 642 643 644 645 646 647 648 649 650 651 652 653 654
tf_py_test(
    name = "lookup_ops_test",
    size = "small",
    srcs = ["lookup_ops_test.py"],
    additional_deps = [
        "//tensorflow/python:client",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:lookup_ops",
        "//tensorflow/python:sparse_tensor",
        "//tensorflow/python:training",
    ],
655
    grpc_enabled = True,
656 657
)

658 659
tf_py_test(
    name = "losses_test",
660
    size = "medium",
661
    srcs = ["losses_test.py"],
662
    additional_deps = [
663
        "//third_party/py/numpy",
664 665 666 667 668 669 670 671 672 673 674 675
        "//tensorflow/python/ops/losses",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:init_ops",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:training",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
    ],
676 677
)

678 679
tf_py_test(
    name = "matrix_exponential_op_test",
680
    size = "medium",
681 682 683 684 685 686 687
    srcs = ["matrix_exponential_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
    ],
688
    shard_count = 16,
689
    tags = ["no_windows_gpu"],
690 691
)

692 693
tf_py_test(
    name = "matrix_logarithm_op_test",
694
    size = "medium",
695 696 697 698 699 700 701 702 703
    srcs = ["matrix_logarithm_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
    ],
)

704
cuda_py_test(
705 706 707
    name = "matrix_inverse_op_test",
    size = "small",
    srcs = ["matrix_inverse_op_test.py"],
708
    additional_deps = [
709
        "//third_party/py/numpy",
710 711 712 713 714
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
    ],
715 716 717 718
    tags = [
        "no_windows_gpu",
        "optonly",
    ],
719 720
)

721
cuda_py_test(
722
    name = "matrix_solve_ls_op_test",
723
    size = "medium",
724
    srcs = ["matrix_solve_ls_op_test.py"],
725
    additional_deps = [
726
        "//third_party/py/numpy",
727
        "//tensorflow/python:array_ops",
728 729 730
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
731
        "//tensorflow/python:math_ops",
732
    ],
733
    tags = ["no_windows_gpu"],
734 735
)

736 737 738 739 740 741 742 743 744 745 746 747
cuda_py_test(
    name = "matrix_square_root_op_test",
    size = "medium",
    srcs = ["matrix_square_root_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
    ],
)

748
cuda_py_test(
749
    name = "matrix_solve_op_test",
J
Justin Lebar 已提交
750
    size = "medium",
751
    srcs = ["matrix_solve_op_test.py"],
752
    additional_deps = [
753
        "//third_party/py/numpy",
754
        "//tensorflow/python:array_ops",
755 756 757 758
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
    ],
759 760
)

X
Xiaoqiang Zheng 已提交
761
cuda_py_test(
762 763 764
    name = "matrix_triangular_solve_op_test",
    size = "small",
    srcs = ["matrix_triangular_solve_op_test.py"],
765
    additional_deps = [
766
        "//third_party/py/numpy",
767 768 769
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:linalg_ops",
    ],
770 771
)

772
cuda_py_test(
773
    name = "parameterized_truncated_normal_op_test",
774
    size = "medium",
775
    srcs = ["parameterized_truncated_normal_op_test.py"],
776
    additional_deps = [
777
        "@absl_py//absl/testing:parameterized",
778
        "//third_party/py/numpy",
779
        "//tensorflow/core:protos_all_py",
780
        "//tensorflow/python:client",
781 782 783 784 785 786 787
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:platform",
        "//tensorflow/python:random_ops",
    ],
788 789 790 791
)

tf_py_test(
    name = "parsing_ops_test",
792
    size = "medium",
793
    srcs = ["parsing_ops_test.py"],
794
    additional_deps = [
795
        "//third_party/py/numpy",
796 797 798 799 800 801 802 803 804
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:parsing_ops",
        "//tensorflow/python:platform",
    ],
805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821
)

tf_py_test(
    name = "parse_single_example_op_test",
    size = "small",
    srcs = ["parse_single_example_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:parsing_ops",
        "//tensorflow/python:platform",
    ],
822 823 824 825 826 827
)

tf_py_test(
    name = "partitioned_variables_test",
    size = "small",
    srcs = ["partitioned_variables_test.py"],
828
    additional_deps = [
829
        "//third_party/py/numpy",
830 831 832 833 834 835 836 837 838
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:init_ops",
        "//tensorflow/python:partitioned_variables",
        "//tensorflow/python:random_ops",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
    ],
839 840 841 842
)

tf_py_test(
    name = "priority_queue_test",
843
    size = "medium",
844
    srcs = ["priority_queue_test.py"],
845
    additional_deps = [
846
        "//third_party/py/numpy",
847 848 849 850 851 852 853
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
    ],
854 855
)

856
cuda_py_test(
857
    name = "resource_variable_ops_test",
A
Alexandre Passos 已提交
858
    size = "medium",
859 860
    srcs = ["resource_variable_ops_test.py"],
    additional_deps = [
861
        "@absl_py//absl/testing:parameterized",
862
        "//tensorflow/python:array_ops",
863
        "//tensorflow/python:constant_op",
864 865 866 867
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
868
        "//tensorflow/python:resource_variable_ops",
869
        "//tensorflow/python:variables",
870
    ],
871 872
    # TODO(b/128347673): Re-enable.
    tags = ["no_windows"],
873 874
)

875 876 877 878 879
tf_py_test(
    name = "regex_replace_op_test",
    size = "small",
    srcs = ["regex_replace_op_test.py"],
    additional_deps = [
880
        "@absl_py//absl/testing:parameterized",
881 882 883 884 885 886 887
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:string_ops",
    ],
)

Y
Yifei Feng 已提交
888 889 890 891 892
tf_py_test(
    name = "regex_full_match_op_test",
    size = "small",
    srcs = ["regex_full_match_op_test.py"],
    additional_deps = [
893
        "@absl_py//absl/testing:parameterized",
Y
Yifei Feng 已提交
894 895 896 897 898 899 900
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:string_ops",
    ],
)

901 902 903 904
tf_py_test(
    name = "save_restore_ops_test",
    size = "small",
    srcs = ["save_restore_ops_test.py"],
905 906
    additional_deps = [
        "//tensorflow/core:protos_all_py",
907
        "//tensorflow/python:client",
908
        "//tensorflow/python:client_testlib",
909
        "//tensorflow/python:constant_op",
910
        "//tensorflow/python:io_ops",
911 912
        "//tensorflow/python:io_ops_gen",
    ],
913 914
)

915
cuda_py_test(
916 917 918
    name = "scatter_nd_ops_test",
    size = "medium",
    srcs = ["scatter_nd_ops_test.py"],
919
    additional_deps = [
920
        "//third_party/py/numpy",
921
        "//tensorflow/python:array_ops",
922
        "//tensorflow/python:client",
923 924 925 926 927
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:state_ops",
        "//tensorflow/python:variables",
928
        "//tensorflow/python:resource_variable_ops",
929
    ],
930
    tags = ["noasan"],  # http://b/32635055
931 932
)

933 934
tf_py_test(
    name = "segment_reduction_ops_test",
935
    size = "medium",
936
    srcs = ["segment_reduction_ops_test.py"],
937
    additional_deps = [
938
        "//third_party/py/numpy",
939
        "//tensorflow/python:client",
940 941 942
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
943
        "//tensorflow/python:variables",
944 945
        "//tensorflow/python:nn_grad",
    ],
946 947 948 949 950 951
)

tf_py_test(
    name = "sparse_add_op_test",
    size = "small",
    srcs = ["sparse_add_op_test.py"],
952
    additional_deps = [
953
        "//third_party/py/numpy",
954
        "//tensorflow/python:client",
955 956 957 958 959 960 961
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:sparse_grad",
        "//tensorflow/python:sparse_ops",
    ],
962 963 964 965 966 967
)

tf_py_test(
    name = "sparse_concat_op_test",
    size = "small",
    srcs = ["sparse_concat_op_test.py"],
968
    additional_deps = [
969
        "//third_party/py/numpy",
970 971 972 973 974 975
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:sparse_ops",
    ],
976 977
)

978 979 980 981
tf_py_test(
    name = "sparse_conditional_accumulator_test",
    size = "small",
    srcs = ["sparse_conditional_accumulator_test.py"],
982
    additional_deps = [
983
        "//third_party/py/numpy",
984 985 986 987 988 989
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
990 991
)

992 993 994 995
tf_py_test(
    name = "sparse_reorder_op_test",
    size = "small",
    srcs = ["sparse_reorder_op_test.py"],
996
    additional_deps = [
997
        "//third_party/py/numpy",
998 999 1000 1001 1002 1003 1004
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:sparse_grad",
        "//tensorflow/python:sparse_ops",
    ],
1005 1006 1007 1008 1009 1010
)

tf_py_test(
    name = "sparse_reshape_op_test",
    size = "small",
    srcs = ["sparse_reshape_op_test.py"],
1011
    additional_deps = [
1012
        "//third_party/py/numpy",
1013 1014 1015 1016 1017 1018
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:sparse_ops",
    ],
1019 1020 1021 1022 1023 1024
)

tf_py_test(
    name = "sparse_split_op_test",
    size = "small",
    srcs = ["sparse_split_op_test.py"],
1025
    additional_deps = [
1026
        "//third_party/py/numpy",
1027 1028 1029 1030
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:sparse_ops",
    ],
S
Shanqing Cai 已提交
1031 1032 1033 1034 1035 1036 1037 1038 1039 1040
)

tf_py_test(
    name = "sparse_slice_op_test",
    size = "small",
    srcs = ["sparse_slice_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
1041
        "//tensorflow/python:sparse_grad",
S
Shanqing Cai 已提交
1042 1043
        "//tensorflow/python:sparse_ops",
    ],
1044 1045 1046 1047 1048 1049
)

tf_py_test(
    name = "sparse_to_dense_op_py_test",
    size = "small",
    srcs = ["sparse_to_dense_op_py_test.py"],
1050
    additional_deps = [
1051
        "//third_party/py/numpy",
1052 1053 1054 1055 1056
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:sparse_ops",
    ],
1057 1058 1059 1060 1061 1062
)

tf_py_test(
    name = "sparsemask_op_test",
    size = "small",
    srcs = ["sparsemask_op_test.py"],
1063
    additional_deps = [
1064
        "//third_party/py/numpy",
1065 1066 1067 1068
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
1069 1070
)

1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083
tf_py_test(
    name = "string_format_op_test",
    size = "small",
    srcs = ["string_format_op_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:string_ops",
        "//tensorflow/python:math_ops",
    ],
)

1084 1085 1086 1087
tf_py_test(
    name = "string_join_op_test",
    size = "small",
    srcs = ["string_join_op_test.py"],
1088 1089 1090 1091
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:string_ops",
    ],
1092 1093 1094 1095 1096 1097
)

tf_py_test(
    name = "string_split_op_test",
    size = "small",
    srcs = ["string_split_op_test.py"],
1098
    additional_deps = [
1099
        "@absl_py//absl/testing:parameterized",
1100
        "//third_party/py/numpy",
1101
        "//tensorflow/python/ops/ragged:ragged_factory_ops",
1102 1103 1104 1105
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
1106
        "//tensorflow/python:framework_test_lib",
1107
        "//tensorflow/python:string_ops",
1108
        "//tensorflow/python/ops/ragged:ragged_string_ops",
1109
        "//tensorflow/python:util",
1110
    ],
1111 1112
)

1113 1114 1115 1116 1117
tf_py_test(
    name = "string_bytes_split_op_test",
    size = "small",
    srcs = ["string_bytes_split_op_test.py"],
    additional_deps = [
1118
        "@absl_py//absl/testing:parameterized",
1119
        "//third_party/py/numpy",
1120 1121
        "//tensorflow/python/ops/ragged:ragged_factory_ops",
        "//tensorflow/python/ops/ragged:ragged_string_ops",
1122 1123 1124 1125
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
1126
        "//tensorflow/python:framework_test_lib",
1127 1128 1129 1130 1131
        "//tensorflow/python:string_ops",
        "//tensorflow/python/ops/ragged",
    ],
)

1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142
tf_py_test(
    name = "string_length_op_test",
    size = "small",
    srcs = ["string_length_op_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:string_ops",
    ],
)

Y
Yifei Feng 已提交
1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156
tf_py_test(
    name = "string_strip_op_test",
    size = "small",
    srcs = ["string_strip_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:string_ops",
    ],
)

Y
Yong Tang 已提交
1157 1158 1159 1160 1161 1162 1163 1164
tf_py_test(
    name = "string_lower_op_test",
    size = "small",
    srcs = ["string_lower_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
Y
Yong Tang 已提交
1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:string_ops",
    ],
)

tf_py_test(
    name = "string_upper_op_test",
    size = "small",
    srcs = ["string_upper_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
Y
Yifei Feng 已提交
1179 1180 1181 1182 1183 1184
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:string_ops",
    ],
)

B
Benoit Steiner 已提交
1185 1186 1187 1188
tf_py_test(
    name = "substr_op_test",
    size = "small",
    srcs = ["substr_op_test.py"],
1189
    additional_deps = [
1190
        "@absl_py//absl/testing:parameterized",
1191
        "//third_party/py/numpy",
1192 1193 1194 1195
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:string_ops",
    ],
B
Benoit Steiner 已提交
1196 1197
)

1198
cuda_py_test(
1199 1200 1201 1202 1203 1204 1205
    name = "summary_ops_test",
    size = "small",
    srcs = ["summary_ops_test.py"],
    additional_deps = [
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:constant_op",
N
Nick Felt 已提交
1206
        "//tensorflow/python:dtypes",
1207
        "//tensorflow/python:errors",
1208 1209 1210
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:lib",
N
Nick Felt 已提交
1211
        "//tensorflow/python:math_ops",
1212 1213
        "//tensorflow/python:platform",
        "//tensorflow/python:summary_ops_v2",
S
Stephan Lee 已提交
1214
        "@six_archive//:six",
N
Nick Felt 已提交
1215
        "//tensorflow/python:tensor_spec",
1216
        "//tensorflow/python:tensor_util",
N
Nick Felt 已提交
1217
        "//tensorflow/python:variables",
1218 1219
        "//tensorflow/python/eager:function",
        "//tensorflow/python/eager:context",
1220 1221
        "//tensorflow/python/keras:engine",
        "//tensorflow/python/keras:layers",
1222 1223 1224
    ],
)

1225
tf_py_test(
1226
    name = "summary_v1_ops_test",
1227
    size = "small",
1228
    srcs = ["summary_v1_ops_test.py"],
1229 1230 1231 1232 1233 1234 1235
    additional_deps = [
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:logging_ops",
        "//tensorflow/python:summary",
    ],
1236 1237 1238
)

tf_py_test(
1239
    name = "summary_v1_tensor_op_test",
1240
    size = "small",
1241
    srcs = ["summary_v1_tensor_op_test.py"],
1242
    additional_deps = [
1243 1244
        "//third_party/py/numpy",
        "@six_archive//:six",
1245 1246 1247 1248 1249
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
1250
        "//tensorflow/python:summary",
1251
    ],
1252 1253 1254 1255 1256 1257
)

tf_py_test(
    name = "template_test",
    size = "small",
    srcs = ["template_test.py"],
1258
    additional_deps = [
1259
        "//tensorflow/python:client",
1260 1261 1262 1263 1264 1265 1266 1267 1268 1269
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:init_ops",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:template",
        "//tensorflow/python:training",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
    ],
1270 1271
)

1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286
cuda_py_test(
    name = "template_mirrored_strategy_test",
    size = "small",
    srcs = ["template_mirrored_strategy_test.py"],
    additional_deps = [
        "//tensorflow/python/distribute:distribute_lib",
        "//tensorflow/python/distribute:mirrored_strategy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:init_ops",
        "//tensorflow/python:template",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
    ],
)

1287
cuda_py_test(
1288 1289 1290 1291 1292 1293 1294 1295 1296
    name = "tridiagonal_solve_op_test",
    size = "medium",
    srcs = ["tridiagonal_solve_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
    ],
1297
    shard_count = 10,
1298 1299 1300 1301
    tags = [
        "no_oss",  # TODO(b/142818120): Re-enable.
        "no_rocm",
    ],
1302 1303
)

1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315
tf_py_test(
    name = "unicode_script_op_test",
    size = "small",
    srcs = ["unicode_script_op_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:string_ops",
    ],
)

1316
cuda_py_test(
1317
    name = "topk_op_test",
1318
    size = "medium",
1319
    srcs = ["topk_op_test.py"],
1320
    additional_deps = [
1321
        "//third_party/py/numpy",
1322 1323 1324 1325 1326 1327 1328
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
    ],
1329 1330
)

B
Benoit Steiner 已提交
1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345
cuda_py_test(
    name = "nth_element_op_test",
    size = "small",
    srcs = ["nth_element_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
    ],
)

1346 1347 1348 1349 1350 1351 1352
tf_py_test(
    name = "unicode_encode_op_test",
    size = "small",
    srcs = ["unicode_encode_op_test.py"],
    additional_deps = [
        "@absl_py//absl/testing:parameterized",
        "//third_party/py/numpy",
1353 1354
        "//tensorflow/python/ops/ragged:ragged_tensor",
        "//tensorflow/python/ops/ragged:ragged_tensor_value",
1355 1356 1357 1358 1359
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:errors",
        "//tensorflow/python/ops/ragged:ragged_factory_ops",
        "//tensorflow/python/ops/ragged:ragged_string_ops",
1360
        "//tensorflow/python:framework_test_lib",
1361 1362 1363
    ],
)

1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375
tf_py_test(
    name = "unicode_transcode_op_test",
    size = "small",
    srcs = ["unicode_transcode_op_test.py"],
    additional_deps = [
        "@absl_py//absl/testing:parameterized",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:string_ops",
    ],
)

1376 1377 1378 1379 1380 1381
tf_py_test(
    name = "unicode_decode_op_test",
    size = "small",
    srcs = ["unicode_decode_op_test.py"],
    additional_deps = [
        "@absl_py//absl/testing:parameterized",
1382
        "//tensorflow/python/eager:context",
1383
        "//tensorflow/python/ops/ragged:ragged_factory_ops",
1384
        "//tensorflow/python/ops/ragged:ragged_string_ops",
1385
        "//tensorflow/python:array_ops",
1386
        "//tensorflow/python:client_testlib",
1387
        "//tensorflow/python:errors",
1388
        "//tensorflow/python:framework_for_generated_wrappers",
1389 1390 1391
        "//tensorflow/python/ops/ragged:ragged",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:sparse_tensor",
1392 1393 1394 1395
        "//tensorflow/python:string_ops",
    ],
)

1396 1397 1398 1399
tf_py_test(
    name = "unique_op_test",
    size = "small",
    srcs = ["unique_op_test.py"],
1400
    additional_deps = [
1401
        "//third_party/py/numpy",
1402 1403 1404
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
    ],
1405 1406 1407 1408 1409 1410
)

tf_py_test(
    name = "variable_scope_test",
    size = "small",
    srcs = ["variable_scope_test.py"],
1411
    additional_deps = [
1412
        "//third_party/py/numpy",
1413 1414 1415 1416
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
1417
        "//tensorflow/python:framework_test_lib",
1418
        "//tensorflow/python:init_ops",
1419
        "//tensorflow/python:layers",
1420 1421
        "//tensorflow/python:math_ops",
        "//tensorflow/python:variable_scope",
1422
        "//tensorflow/python:resource_variable_ops",
1423
        "//tensorflow/python:state_ops",
1424
        "//tensorflow/python:util",
1425
        "//tensorflow/python:variables",
1426
        "//tensorflow/python/eager:context",
1427
        "//tensorflow/python/eager:function",
1428
        "//tensorflow/python/eager:wrap_function",
1429
    ],
J
Jonathan Hseu 已提交
1430
    tags = ["no_windows"],
1431 1432 1433 1434 1435 1436
)

tf_py_test(
    name = "variables_test",
    size = "small",
    srcs = ["variables_test.py"],
1437
    additional_deps = [
P
Peter Buchlovsky 已提交
1438
        "@absl_py//absl/testing:parameterized",
1439
        "//third_party/py/numpy",
1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:random_ops",
        "//tensorflow/python:state_ops_gen",
        "//tensorflow/python:training",
        "//tensorflow/python:util",
        "//tensorflow/python:variables",
1451
        "//tensorflow/python/eager:function",
1452
    ],
1453
    tags = ["no_windows"],  # b/133869052
1454 1455
)

E
Eugene Brevdo 已提交
1456
cuda_py_test(
1457
    name = "where_op_test",
1458
    size = "medium",
1459
    srcs = ["where_op_test.py"],
1460
    additional_deps = [
1461
        "//third_party/py/numpy",
1462 1463 1464 1465
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
1466 1467 1468
)

cuda_py_test(
1469 1470 1471
    name = "cast_op_test",
    size = "small",
    srcs = ["cast_op_test.py"],
1472
    additional_deps = [
1473
        "//third_party/py/numpy",
1474 1475 1476 1477 1478 1479
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:variables",
1480
    ],
J
Jonathan Hseu 已提交
1481 1482 1483
    tags = [
        "no_windows",
        "noasan",
A
Anna R 已提交
1484
        "noguitar",
A
A. Unique TensorFlower 已提交
1485
        "notap",
1486
        "optonly",
J
Jonathan Hseu 已提交
1487
    ],
1488 1489
)

1490 1491 1492 1493
cuda_py_test(
    name = "dense_update_ops_no_tsan_test",
    size = "small",
    srcs = ["dense_update_ops_no_tsan_test.py"],
1494
    additional_deps = [
1495
        "//third_party/py/numpy",
1496 1497 1498 1499 1500
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:state_ops",
        "//tensorflow/python:variables",
1501
    ],
1502
    tags = ["notsan"],
1503 1504
    # TODO (b/140294007): the test fails with XLA.
    xla_enable_strict_auto_jit = False,
1505 1506
)

1507
cuda_py_test(
1508 1509 1510
    name = "diag_op_test",
    size = "medium",
    srcs = ["diag_op_test.py"],
1511
    additional_deps = [
1512
        "//third_party/py/numpy",
1513 1514 1515 1516 1517
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:platform",
1518
    ],
1519
    shard_count = 2,
J
Jonathan Hseu 已提交
1520
    tags = ["no_windows_gpu"],
1521 1522
)

1523
tf_py_test(
1524 1525 1526 1527
    name = "reader_ops_test",
    size = "small",
    srcs = ["reader_ops_test.py"],
    additional_deps = [
1528
        "@six_archive//:six",
1529 1530 1531 1532 1533 1534 1535 1536 1537
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:io_ops",
        "//tensorflow/python:lib",
        "//tensorflow/python:util",
        "//tensorflow/python:variables",
1538
    ],
J
Jonathan Hseu 已提交
1539
    data = ["//tensorflow/core:lmdb_testdata"],
1540 1541
)

1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554
cuda_py_test(
    name = "aggregate_ops_test",
    size = "small",
    srcs = ["aggregate_ops_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
    ],
)

1555 1556 1557 1558 1559
cuda_py_test(
    name = "argmax_op_test",
    size = "small",
    srcs = ["argmax_op_test.py"],
    additional_deps = [
1560
        "//third_party/py/numpy",
1561 1562
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:math_ops",
1563
    ],
1564 1565 1566 1567 1568 1569
)

cuda_py_test(
    name = "array_ops_test",
    size = "medium",
    srcs = ["array_ops_test.py"],
1570
    additional_deps = [
1571
        "//third_party/py/numpy",
1572
        "//tensorflow/python:array_ops",
1573
        "//tensorflow/python:client",
1574 1575 1576 1577 1578 1579
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:gradients",
1580
        "//tensorflow/python:map_fn",
1581
        "//tensorflow/python:math_ops",
1582
        "//tensorflow/python:state_ops",
1583
        "//tensorflow/python:test_ops",
1584
        "//tensorflow/python:variables",
1585
        "//tensorflow/python/eager:context",
1586
        "//tensorflow/python/eager:def_function",
1587
    ],
1588
    shard_count = 10,
J
Justin Lebar 已提交
1589
    tags = [
D
Deven Desai 已提交
1590
        "no_rocm",
J
Justin Lebar 已提交
1591
        "noasan",  # times out
1592
        "optonly",  # times out
J
Justin Lebar 已提交
1593
    ],
1594 1595
)

Y
Yifei Feng 已提交
1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607
cuda_py_test(
    name = "broadcast_to_ops_test",
    size = "small",
    srcs = ["broadcast_to_ops_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client",
        "//tensorflow/python:client_testlib",
    ],
)

P
Patrick Nguyen 已提交
1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623
cuda_py_test(
    name = "inplace_ops_test",
    size = "small",
    srcs = ["inplace_ops_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:math_ops",
    ],
    shard_count = 10,
)

1624 1625 1626 1627 1628
cuda_py_test(
    name = "batch_matmul_op_test",
    size = "small",
    srcs = ["batch_matmul_op_test.py"],
    additional_deps = [
1629
        "//third_party/py/numpy",
1630 1631 1632 1633
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
1634
    ],
1635
    shard_count = 20,
1636
    tags = ["no_windows_gpu"],
1637 1638 1639 1640 1641 1642
)

cuda_py_test(
    name = "batchtospace_op_test",
    size = "small",
    srcs = ["batchtospace_op_test.py"],
1643
    additional_deps = [
1644
        "//third_party/py/numpy",
1645 1646 1647 1648
        "//tensorflow/python:array_ops",
        "//tensorflow/python:array_ops_gen",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
1649 1650 1651
    ],
)

1652
cuda_py_test(
1653 1654 1655
    name = "betainc_op_test",
    size = "small",
    srcs = ["betainc_op_test.py"],
1656
    additional_deps = [
1657
        "//third_party/py/numpy",
1658 1659 1660 1661 1662
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:platform",
1663
    ],
1664 1665
)

1666 1667 1668 1669
py_library(
    name = "bias_op_base",
    srcs = ["bias_op_base.py"],
    deps = [
1670 1671 1672 1673 1674 1675
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
1676 1677 1678 1679 1680 1681
        "//third_party/py/numpy",
    ],
)

cuda_py_test(
    name = "bias_op_deterministic_test",
1682
    size = "medium",
1683 1684 1685 1686
    srcs = ["bias_op_deterministic_test.py"],
    additional_deps = [
        ":bias_op_base",
    ],
D
Deven Desai 已提交
1687
    tags = ["no_rocm"],
1688
    xla_enable_strict_auto_jit = False,
1689 1690 1691 1692
)

cuda_py_test(
    name = "bias_op_test",
1693
    size = "medium",
1694 1695 1696
    srcs = ["bias_op_test.py"],
    additional_deps = [
        ":bias_op_base",
1697
    ],
1698 1699
)

1700 1701 1702 1703 1704
cuda_py_test(
    name = "bitcast_op_test",
    size = "small",
    srcs = ["bitcast_op_test.py"],
    additional_deps = [
1705
        "//third_party/py/numpy",
1706 1707 1708
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
1709
    ],
1710 1711 1712 1713 1714 1715
)

cuda_py_test(
    name = "check_ops_test",
    size = "small",
    srcs = ["check_ops_test.py"],
1716
    additional_deps = [
1717
        "//third_party/py/numpy",
1718
        "//tensorflow/python/eager:context",
1719
        "//tensorflow/python/eager:def_function",
1720 1721
        "//tensorflow/python:array_ops",
        "//tensorflow/python:check_ops",
1722 1723
        "//tensorflow/python:math_ops",
        "//tensorflow/python:random_ops",
1724 1725 1726
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
1727
    ],
G
Gunhan Gulsoy 已提交
1728 1729 1730
)

cuda_py_test(
1731 1732 1733
    name = "constant_op_test",
    size = "small",
    srcs = ["constant_op_test.py"],
G
Gunhan Gulsoy 已提交
1734
    additional_deps = [
1735
        "//third_party/py/numpy",
1736 1737 1738 1739 1740 1741
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:util",
G
Gunhan Gulsoy 已提交
1742
    ],
1743 1744
)

1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762
cuda_py_test(
    name = "constant_op_eager_test",
    size = "small",
    srcs = ["constant_op_eager_test.py"],
    additional_deps = [
        "//tensorflow/python/eager:core",
        "//tensorflow/python/eager:context",
        "//tensorflow/python/eager:test",
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:util",
    ],
)

1763 1764
cuda_py_test(
    name = "control_flow_ops_py_test",
1765
    size = "small",
1766 1767
    srcs = ["control_flow_ops_py_test.py"],
    additional_deps = [
1768
        "@absl_py//absl/testing:parameterized",
1769
        "//third_party/py/numpy",
1770 1771 1772 1773 1774
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:array_ops_gen",
        "//tensorflow/python:client",
        "//tensorflow/python:client_testlib",
1775
        "//tensorflow/python:cond_v2",
1776 1777 1778
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:data_flow_ops_gen",
1779
        "//tensorflow/python:distributed_framework_test_lib",
1780 1781 1782 1783 1784 1785 1786 1787
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:functional_ops",
        "//tensorflow/python:gradients",
        "//tensorflow/python:logging_ops",
        "//tensorflow/python:logging_ops_gen",
        "//tensorflow/python:math_ops",
1788
        "//tensorflow/python:nn_grad",
1789
        "//tensorflow/python:resource_variable_ops",
1790 1791 1792 1793 1794 1795 1796 1797
        "//tensorflow/python:script_ops",
        "//tensorflow/python:state_ops",
        "//tensorflow/python:state_ops_gen",
        "//tensorflow/python:tensor_array_grad",
        "//tensorflow/python:training",
        "//tensorflow/python:util",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
S
Saurabh Saxena 已提交
1798
        "//tensorflow/python:while_v2",
1799
    ],
1800
    shard_count = 16,
1801 1802 1803
    tags = [
        "notsan",  # TODO(b/132205147): Re-enable this.
    ],
1804 1805
)

1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818
tf_py_test(
    name = "control_flow_util_test",
    size = "small",
    srcs = ["control_flow_util_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:control_flow_ops_gen",
        "//tensorflow/python:control_flow_util",
        "//tensorflow/python:test_ops",
    ],
)

1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832
tf_py_test(
    name = "control_flow_util_v2_test",
    size = "small",
    srcs = ["control_flow_util_v2_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:cond_v2",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:control_flow_util_v2",
        "//tensorflow/python:while_v2",
    ],
)

1833 1834 1835 1836 1837
cuda_py_test(
    name = "conv1d_test",
    size = "small",
    srcs = ["conv1d_test.py"],
    additional_deps = [
1838 1839 1840 1841
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_ops",
1842 1843 1844
    ],
)

1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857
cuda_py_test(
    name = "conv1d_transpose_test",
    size = "small",
    srcs = ["conv1d_transpose_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_ops",
    ],
)

1858 1859 1860 1861 1862
cuda_py_test(
    name = "conv2d_transpose_test",
    size = "small",
    srcs = ["conv2d_transpose_test.py"],
    additional_deps = [
1863
        "//third_party/py/numpy",
1864 1865 1866 1867 1868
        "//tensorflow/python:client",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
1869 1870 1871 1872 1873 1874 1875 1876
    ],
)

cuda_py_test(
    name = "conv3d_backprop_filter_v2_grad_test",
    size = "small",
    srcs = ["conv3d_backprop_filter_v2_grad_test.py"],
    additional_deps = [
1877
        "//third_party/py/numpy",
1878 1879 1880 1881 1882
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
1883 1884 1885 1886 1887 1888 1889 1890
    ],
)

cuda_py_test(
    name = "cross_grad_test",
    size = "small",
    srcs = ["cross_grad_test.py"],
    additional_deps = [
1891 1892 1893
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:math_ops",
1894 1895 1896 1897 1898 1899 1900 1901
    ],
)

cuda_py_test(
    name = "denormal_test",
    size = "small",
    srcs = ["denormal_test.py"],
    additional_deps = [
1902
        "//third_party/py/numpy",
1903 1904 1905 1906
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:platform",
1907 1908 1909 1910 1911 1912 1913 1914
    ],
)

cuda_py_test(
    name = "dense_update_ops_test",
    size = "small",
    srcs = ["dense_update_ops_test.py"],
    additional_deps = [
1915
        "//third_party/py/numpy",
1916 1917 1918 1919 1920 1921
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:state_ops",
        "//tensorflow/python:variables",
1922 1923 1924 1925 1926
    ],
)

cuda_py_test(
    name = "depthtospace_op_test",
1927
    size = "medium",
1928 1929
    srcs = ["depthtospace_op_test.py"],
    additional_deps = [
1930
        "//third_party/py/numpy",
1931 1932 1933 1934
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
1935
    ],
1936
    tags = ["no_windows_gpu"],
1937 1938 1939 1940
)

cuda_py_test(
    name = "division_past_test",
J
Jonathan Hseu 已提交
1941
    size = "medium",
1942 1943
    srcs = ["division_past_test.py"],
    additional_deps = [
1944
        "//third_party/py/numpy",
1945 1946
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
1947
    ],
J
Jonathan Hseu 已提交
1948
    tags = ["manual"],
1949 1950 1951 1952
)

cuda_py_test(
    name = "dynamic_partition_op_test",
1953
    size = "medium",
1954 1955
    srcs = ["dynamic_partition_op_test.py"],
    additional_deps = [
1956
        "//third_party/py/numpy",
1957 1958 1959 1960 1961 1962
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_grad",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
1963 1964 1965 1966 1967 1968 1969 1970
    ],
)

cuda_py_test(
    name = "dynamic_stitch_op_test",
    size = "small",
    srcs = ["dynamic_stitch_op_test.py"],
    additional_deps = [
1971
        "//third_party/py/numpy",
1972 1973 1974 1975 1976
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_grad",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
1977 1978 1979 1980 1981 1982 1983 1984
    ],
)

cuda_py_test(
    name = "extract_image_patches_op_test",
    size = "small",
    srcs = ["extract_image_patches_op_test.py"],
    additional_deps = [
1985
        "//third_party/py/numpy",
1986 1987
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
H
Hoeseong Kim 已提交
1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
)

cuda_py_test(
    name = "extract_volume_patches_op_test",
    size = "small",
    srcs = ["extract_volume_patches_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
1999 2000
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2001 2002 2003 2004 2005
    ],
)

cuda_py_test(
    name = "functional_ops_test",
A
Anna R 已提交
2006
    size = "medium",
2007 2008
    srcs = ["functional_ops_test.py"],
    additional_deps = [
2009
        "//third_party/py/numpy",
2010
        "//tensorflow/core:protos_all_py",
2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:functional_ops",
        "//tensorflow/python:gradients",
        "//tensorflow/python:init_ops",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:tensor_array_grad",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
2022
        "//tensorflow/python:while_v2",
2023
        "//tensorflow/python/data/ops:iterator_ops",
2024
    ],
2025
    grpc_enabled = True,
2026
    shard_count = 2,
J
Jonathan Hseu 已提交
2027
    tags = ["no_windows"],
2028 2029 2030 2031 2032 2033 2034
)

cuda_py_test(
    name = "gather_nd_op_test",
    size = "small",
    srcs = ["gather_nd_op_test.py"],
    additional_deps = [
2035
        "//third_party/py/numpy",
2036
        "//tensorflow/python:array_ops",
2037
        "//tensorflow/python:client",
2038 2039 2040 2041
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:variables",
2042 2043 2044 2045 2046
    ],
)

cuda_py_test(
    name = "gather_op_test",
2047
    size = "medium",
2048 2049
    srcs = ["gather_op_test.py"],
    additional_deps = [
2050
        "@absl_py//absl/testing:parameterized",
2051
        "//third_party/py/numpy",
2052 2053 2054 2055
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
2056 2057 2058 2059 2060 2061 2062 2063
    ],
)

cuda_py_test(
    name = "gradient_correctness_test",
    size = "small",
    srcs = ["gradient_correctness_test.py"],
    additional_deps = [
2064
        "//third_party/py/numpy",
2065 2066 2067 2068
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:math_ops",
2069 2070 2071 2072 2073
    ],
)

cuda_py_test(
    name = "init_ops_test",
A
Anna R 已提交
2074
    size = "medium",
2075 2076
    srcs = ["init_ops_test.py"],
    additional_deps = [
2077
        "//third_party/py/numpy",
2078 2079
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
2080
        "//tensorflow/python:layers",
2081 2082 2083
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:init_ops",
2084
        "//tensorflow/python:linalg_ops",
2085 2086
        "//tensorflow/python:math_ops",
        "//tensorflow/python:nn_ops",
2087
        "//tensorflow/python:partitioned_variables",
2088
        "//tensorflow/python:random_ops",
2089 2090
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
2091
    ],
2092
    shard_count = 4,
2093 2094 2095 2096
    tags = [
        "noasan",
        "notap",
    ],
2097 2098 2099 2100
)

cuda_py_test(
    name = "linalg_ops_test",
2101
    size = "medium",
2102 2103
    srcs = ["linalg_ops_test.py"],
    additional_deps = [
2104
        "@absl_py//absl/testing:parameterized",
2105
        "//third_party/py/numpy",
2106 2107 2108 2109 2110
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
2111
        "//tensorflow/python/ops/linalg",
2112
    ],
2113
    tags = ["no_windows_gpu"],
2114 2115 2116 2117 2118 2119 2120
)

cuda_py_test(
    name = "lrn_op_test",
    size = "small",
    srcs = ["lrn_op_test.py"],
    additional_deps = [
2121
        "//third_party/py/numpy",
2122 2123 2124 2125 2126 2127
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:nn",
        "//tensorflow/python:nn_grad",
2128 2129 2130
    ],
)

2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146
cuda_py_test(
    name = "lu_op_test",
    size = "small",
    srcs = ["lu_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:platform",
        "//tensorflow/python/ops/linalg",
    ],
)

2147 2148
cuda_py_test(
    name = "einsum_op_test",
2149
    size = "medium",
2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160
    srcs = ["einsum_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:platform",
        "//tensorflow/python/ops/linalg",
    ],
2161
    shard_count = 4,
2162 2163
)

M
Michael Case 已提交
2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176
cuda_py_test(
    name = "manip_ops_test",
    size = "small",
    srcs = ["manip_ops_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:manip_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
    tags = ["no_windows_gpu"],
)

2177 2178
cuda_py_test(
    name = "matmul_op_test",
2179
    size = "medium",
2180 2181
    srcs = ["matmul_op_test.py"],
    additional_deps = [
2182
        "//third_party/py/numpy",
2183 2184 2185 2186 2187 2188 2189
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:random_ops",
        "//tensorflow/python:variables",
2190
    ],
2191
    shard_count = 20,
2192
    tags = ["no_windows_gpu"],
2193 2194 2195 2196 2197 2198 2199
)

cuda_py_test(
    name = "morphological_ops_test",
    size = "small",
    srcs = ["morphological_ops_test.py"],
    additional_deps = [
2200
        "//third_party/py/numpy",
2201 2202 2203 2204
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2205 2206 2207 2208 2209 2210 2211 2212
    ],
)

cuda_py_test(
    name = "numerics_test",
    size = "small",
    srcs = ["numerics_test.py"],
    additional_deps = [
2213
        "//third_party/py/numpy",
2214 2215 2216 2217 2218 2219
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:numerics",
2220 2221 2222 2223 2224 2225 2226 2227
    ],
)

cuda_py_test(
    name = "one_hot_op_test",
    size = "small",
    srcs = ["one_hot_op_test.py"],
    additional_deps = [
2228
        "//third_party/py/numpy",
2229 2230 2231
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2232
    ],
J
Jonathan Hseu 已提交
2233
    tags = ["no_windows_gpu"],
2234 2235 2236
)

cuda_py_test(
2237
    name = "stack_op_test",
2238
    size = "small",
2239
    srcs = ["stack_op_test.py"],
2240
    additional_deps = [
2241
        "//third_party/py/numpy",
2242 2243 2244 2245 2246
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:variables",
2247 2248 2249
    ],
)

G
Gaurav Jain 已提交
2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271
cuda_py_test(
    name = "map_fn_test",
    size = "small",
    srcs = ["map_fn_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:gradients",
        "//tensorflow/python:init_ops",
        "//tensorflow/python:map_fn",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:tensor_array_grad",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
    ],
    grpc_enabled = True,
    shard_count = 2,
    tags = ["no_windows"],
)

2272 2273 2274 2275 2276
cuda_py_test(
    name = "pad_op_test",
    size = "small",
    srcs = ["pad_op_test.py"],
    additional_deps = [
2277
        "//third_party/py/numpy",
2278 2279 2280
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2281 2282 2283 2284 2285 2286 2287 2288
    ],
)

cuda_py_test(
    name = "padding_fifo_queue_test",
    size = "small",
    srcs = ["padding_fifo_queue_test.py"],
    additional_deps = [
2289
        "//third_party/py/numpy",
2290 2291 2292 2293 2294
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
2295 2296 2297 2298 2299 2300 2301 2302
    ],
)

cuda_py_test(
    name = "py_func_test",
    size = "small",
    srcs = ["py_func_test.py"],
    additional_deps = [
2303
        "//third_party/py/numpy",
2304
        "//tensorflow/python:array_ops",
2305
        "//tensorflow/python:client",
2306 2307 2308 2309
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:script_ops",
2310 2311
        "//tensorflow/python/eager:context",
        "//tensorflow/python/eager:function",
2312
    ],
2313
    grpc_enabled = True,
J
Jonathan Hseu 已提交
2314
    tags = ["no_windows"],
2315 2316 2317 2318 2319 2320 2321
)

cuda_py_test(
    name = "reduce_join_op_test",
    size = "small",
    srcs = ["reduce_join_op_test.py"],
    additional_deps = [
2322
        "//third_party/py/numpy",
2323 2324
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:string_ops",
    ],
)

cuda_py_test(
    name = "unsorted_segment_join_op_test",
    size = "small",
    srcs = ["unsorted_segment_join_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
2338 2339
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:string_ops",
2340 2341 2342 2343 2344 2345 2346 2347
    ],
)

cuda_py_test(
    name = "reduction_ops_test",
    size = "medium",
    srcs = ["reduction_ops_test.py"],
    additional_deps = [
2348
        "//third_party/py/numpy",
2349 2350 2351 2352
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
2353
    ],
2354
    shard_count = 6,
2355 2356 2357
    tags = [
        "no_windows_gpu",
    ],
2358 2359
)

2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370
cuda_py_test(
    name = "reduction_ops_test_big",
    size = "medium",
    srcs = ["reduction_ops_test_big.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
    ],
2371
    shard_count = 3,
2372 2373 2374 2375 2376 2377 2378 2379
    tags = [
        "manual",
        "no_gpu",
        "nogpu",
        "noguitar",
    ],
)

2380 2381 2382 2383 2384
cuda_py_test(
    name = "relu_op_test",
    size = "small",
    srcs = ["relu_op_test.py"],
    additional_deps = [
2385
        "//third_party/py/numpy",
2386 2387 2388 2389 2390 2391 2392
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
        "//tensorflow/python:random_ops",
        "//tensorflow/python:training",
        "//tensorflow/python:variables",
2393 2394
        "//tensorflow/python/eager:backprop",
        "//tensorflow/python:tf2",
2395 2396 2397 2398 2399 2400 2401 2402
    ],
)

cuda_py_test(
    name = "reshape_op_test",
    size = "small",
    srcs = ["reshape_op_test.py"],
    additional_deps = [
2403
        "//third_party/py/numpy",
2404 2405 2406
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2407 2408 2409 2410 2411 2412 2413 2414
    ],
)

cuda_py_test(
    name = "reverse_sequence_op_test",
    size = "small",
    srcs = ["reverse_sequence_op_test.py"],
    additional_deps = [
2415
        "//third_party/py/numpy",
2416 2417 2418
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2419 2420 2421
    ],
)

E
Eugene Brevdo 已提交
2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433
cuda_py_test(
    name = "compare_and_bitpack_op_test",
    size = "small",
    srcs = ["compare_and_bitpack_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
)

2434
cuda_py_test(
2435
    name = "scalar_test",
2436
    size = "small",
2437
    srcs = ["scalar_test.py"],
2438
    additional_deps = [
2439
        "//third_party/py/numpy",
2440 2441 2442 2443 2444 2445 2446 2447 2448
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:io_ops_gen",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:platform",
        "//tensorflow/python:random_ops",
        "//tensorflow/python:sparse_ops",
2449
    ],
2450 2451
    # b/140221961: Invalid dims for operations
    xla_enable_strict_auto_jit = False,
2452 2453 2454 2455 2456 2457 2458
)

cuda_py_test(
    name = "scan_ops_test",
    size = "medium",
    srcs = ["scan_ops_test.py"],
    additional_deps = [
2459
        "//third_party/py/numpy",
2460 2461 2462 2463
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
2464 2465 2466 2467 2468 2469 2470 2471
    ],
)

cuda_py_test(
    name = "session_ops_test",
    size = "small",
    srcs = ["session_ops_test.py"],
    additional_deps = [
2472 2473 2474 2475
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:session_ops",
2476 2477 2478 2479 2480
    ],
)

cuda_py_test(
    name = "shape_ops_test",
A
Anna R 已提交
2481
    size = "medium",
2482 2483
    srcs = ["shape_ops_test.py"],
    additional_deps = [
2484
        "@absl_py//absl/testing:parameterized",
2485
        "//third_party/py/numpy",
2486 2487 2488 2489 2490 2491 2492
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
2493 2494 2495 2496 2497
    ],
)

cuda_py_test(
    name = "softmax_op_test",
2498
    size = "medium",
2499 2500
    srcs = ["softmax_op_test.py"],
    additional_deps = [
2501
        "//third_party/py/numpy",
2502 2503 2504 2505 2506
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_ops",
2507 2508 2509 2510 2511 2512 2513 2514
    ],
)

cuda_py_test(
    name = "softplus_op_test",
    size = "small",
    srcs = ["softplus_op_test.py"],
    additional_deps = [
2515
        "//third_party/py/numpy",
2516 2517 2518 2519
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2520 2521 2522 2523 2524 2525 2526 2527
    ],
)

cuda_py_test(
    name = "softsign_op_test",
    size = "small",
    srcs = ["softsign_op_test.py"],
    additional_deps = [
2528
        "//third_party/py/numpy",
2529 2530 2531 2532
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2533 2534 2535 2536 2537 2538 2539 2540
    ],
)

cuda_py_test(
    name = "spacetobatch_op_test",
    size = "small",
    srcs = ["spacetobatch_op_test.py"],
    additional_deps = [
2541
        "//third_party/py/numpy",
2542 2543 2544 2545 2546 2547
        "//tensorflow/python:array_ops",
        "//tensorflow/python:array_ops_gen",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
2548 2549 2550 2551 2552
    ],
)

cuda_py_test(
    name = "spacetodepth_op_test",
2553
    size = "medium",
2554 2555
    srcs = ["spacetodepth_op_test.py"],
    additional_deps = [
2556
        "//third_party/py/numpy",
2557 2558 2559 2560
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
2561
    ],
2562 2563 2564 2565
    tags = [
        "no_windows",
        "no_windows_gpu",
    ],
2566 2567
)

2568
tf_py_test(
2569 2570 2571 2572
    name = "sparse_serialization_ops_test",
    size = "small",
    srcs = ["sparse_serialization_ops_test.py"],
    additional_deps = [
2573
        "//third_party/py/numpy",
2574 2575 2576 2577 2578
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:sparse_ops",
2579 2580 2581
    ],
)

2582 2583 2584 2585 2586
tf_py_test(
    name = "sparse_tensors_map_ops_test",
    size = "small",
    srcs = ["sparse_tensors_map_ops_test.py"],
    additional_deps = [
2587
        "//third_party/py/numpy",
2588
        "//tensorflow/python:array_ops",
2589
        "//tensorflow/python:client",
2590 2591 2592 2593 2594
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:sparse_ops",
        "//tensorflow/python:variables",
2595 2596 2597
    ],
)

2598 2599 2600 2601 2602
cuda_py_test(
    name = "sparse_tensor_dense_matmul_grad_test",
    size = "small",
    srcs = ["sparse_tensor_dense_matmul_grad_test.py"],
    additional_deps = [
2603
        "//third_party/py/numpy",
2604 2605 2606 2607 2608
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:sparse_grad",
        "//tensorflow/python:sparse_ops",
2609 2610 2611 2612 2613 2614 2615 2616
    ],
)

cuda_py_test(
    name = "sparse_xent_op_test",
    size = "small",
    srcs = ["sparse_xent_op_test.py"],
    additional_deps = [
2617
        "//third_party/py/numpy",
2618 2619
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
2620
        "//tensorflow/python:client",
2621 2622 2623 2624 2625 2626 2627 2628 2629 2630
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
        "//tensorflow/python:nn_ops_gen",
        "//tensorflow/python:platform",
        "//tensorflow/python:sparse_ops",
2631 2632
        "//tensorflow/python:random_ops",
        "//tensorflow/python:variables",
2633 2634 2635 2636 2637
    ],
)

cuda_py_test(
    name = "split_op_test",
A
A. Unique TensorFlower 已提交
2638
    size = "medium",
2639 2640
    srcs = ["split_op_test.py"],
    additional_deps = [
2641
        "//third_party/py/numpy",
2642 2643 2644 2645 2646
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:math_ops",
2647 2648 2649 2650 2651 2652 2653 2654
    ],
)

cuda_py_test(
    name = "stack_ops_test",
    size = "small",
    srcs = ["stack_ops_test.py"],
    additional_deps = [
2655
        "//third_party/py/numpy",
2656 2657 2658 2659 2660 2661
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:data_flow_ops_gen",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
2662 2663 2664 2665 2666 2667 2668 2669
    ],
)

cuda_py_test(
    name = "string_to_hash_bucket_op_test",
    size = "small",
    srcs = ["string_to_hash_bucket_op_test.py"],
    additional_deps = [
2670 2671 2672 2673
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:string_ops",
2674 2675 2676 2677 2678 2679 2680 2681
    ],
)

cuda_py_test(
    name = "string_to_number_op_test",
    size = "small",
    srcs = ["string_to_number_op_test.py"],
    additional_deps = [
2682 2683 2684 2685
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:parsing_ops",
2686 2687 2688 2689
    ],
)

cuda_py_test(
2690
    name = "summary_v1_audio_op_test",
2691
    size = "small",
2692
    srcs = ["summary_v1_audio_op_test.py"],
2693
    additional_deps = [
2694
        "//third_party/py/numpy",
2695 2696 2697 2698
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:summary",
2699 2700 2701 2702
    ],
)

cuda_py_test(
2703
    name = "summary_v1_image_op_test",
2704
    size = "small",
2705
    srcs = ["summary_v1_image_op_test.py"],
2706
    additional_deps = [
2707
        "//third_party/py/numpy",
2708 2709 2710 2711 2712 2713
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:image_ops",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:summary",
2714 2715 2716 2717 2718 2719 2720 2721
    ],
)

cuda_py_test(
    name = "tensor_array_ops_test",
    size = "small",
    srcs = ["tensor_array_ops_test.py"],
    additional_deps = [
2722
        "//third_party/py/numpy",
2723 2724 2725 2726
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:data_flow_ops_gen",
2727
        "//tensorflow/python:distributed_framework_test_lib",
2728
        "//tensorflow/python:framework_for_generated_wrappers",
2729
        "//tensorflow/python:framework_test_lib",
2730
        "//tensorflow/python:gradients",
2731
        "//tensorflow/python:init_ops",
2732 2733
        "//tensorflow/python:math_ops",
        "//tensorflow/python:nn_grad",
2734
        "//tensorflow/python:tensor_spec",
2735
        "//tensorflow/python:training",
2736 2737 2738
        "//tensorflow/python:tensor_array_grad",
        "//tensorflow/python:tensor_array_ops",
        "//tensorflow/python:variables",
2739
        "//tensorflow/python:variable_scope",
2740 2741
        "//tensorflow/python:cond_v2",
        "//tensorflow/python:while_v2",
2742
        "//tensorflow/python/data/ops:dataset_ops",
2743 2744
        "//tensorflow/python/eager:backprop",
        "//tensorflow/python/eager:context",
2745
        "//tensorflow/python/eager:def_function",
2746
    ],
2747
    flaky = 1,  # create_local_cluster sometimes times out.
J
Jeremy Lau 已提交
2748
    shard_count = 10,
2749
    tags = ["no_rocm"],
2750 2751 2752 2753 2754 2755 2756
)

cuda_py_test(
    name = "trace_op_test",
    size = "small",
    srcs = ["trace_op_test.py"],
    additional_deps = [
2757
        "//third_party/py/numpy",
2758 2759
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:math_ops",
2760
    ],
J
Jonathan Hseu 已提交
2761
    tags = ["no_windows_gpu"],
2762 2763 2764 2765
)

cuda_py_test(
    name = "transpose_op_test",
A
A. Unique TensorFlower 已提交
2766
    size = "medium",
2767 2768
    srcs = ["transpose_op_test.py"],
    additional_deps = [
2769
        "//third_party/py/numpy",
2770 2771 2772
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2773
    ],
2774
    shard_count = 10,
2775 2776 2777
    tags = [
        "no_gpu",
        "no_oss",
2778
        "notap",  # flaky timeout/segfault, b/136498892
A
A. Unique TensorFlower 已提交
2779
        "optonly",  # times out
2780
    ],
2781 2782 2783
)

cuda_py_test(
2784
    name = "unstack_op_test",
2785
    size = "small",
2786
    srcs = ["unstack_op_test.py"],
2787
    additional_deps = [
2788
        "//third_party/py/numpy",
2789 2790 2791
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2792 2793 2794 2795 2796 2797 2798 2799
    ],
)

cuda_py_test(
    name = "variable_ops_test",
    size = "small",
    srcs = ["variable_ops_test.py"],
    additional_deps = [
2800
        "//third_party/py/numpy",
2801 2802 2803 2804 2805 2806 2807 2808
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:state_ops",
        "//tensorflow/python:state_ops_gen",
        "//tensorflow/python:variables",
2809 2810 2811 2812 2813 2814 2815 2816
    ],
)

cuda_py_test(
    name = "xent_op_test",
    size = "small",
    srcs = ["xent_op_test.py"],
    additional_deps = [
2817
        "//third_party/py/numpy",
2818 2819
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2820 2821
        "//tensorflow/python:gradients",
        "//tensorflow/python:math_ops",
2822 2823 2824
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
        "//tensorflow/python:nn_ops_gen",
2825 2826 2827 2828 2829 2830 2831 2832
    ],
)

cuda_py_test(
    name = "zero_division_test",
    size = "small",
    srcs = ["zero_division_test.py"],
    additional_deps = [
2833 2834 2835
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
2836 2837 2838 2839 2840 2841 2842 2843
    ],
)

cuda_py_test(
    name = "atrous_conv2d_test",
    size = "medium",
    srcs = ["atrous_conv2d_test.py"],
    additional_deps = [
2844
        "//third_party/py/numpy",
2845 2846 2847 2848 2849 2850
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2851
    ],
2852
    shard_count = 2,
A
A. Unique TensorFlower 已提交
2853
    tags = [
2854
        "no_gpu",  #  Flaky: b/80127739, b/127001953
A
A. Unique TensorFlower 已提交
2855
    ],
2856 2857
)

2858 2859 2860 2861 2862
cuda_py_test(
    name = "atrous_convolution_test",
    size = "medium",
    srcs = ["atrous_convolution_test.py"],
    additional_deps = [
2863
        "//third_party/py/numpy",
P
Patrick Nguyen 已提交
2864
        "//tensorflow/python:array_ops",
2865 2866 2867 2868
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2869
    ],
J
Jonathan Hseu 已提交
2870
    tags = ["manual"],
2871 2872 2873 2874 2875 2876 2877
)

cuda_py_test(
    name = "pool_test",
    size = "medium",
    srcs = ["pool_test.py"],
    additional_deps = [
2878
        "//third_party/py/numpy",
2879 2880 2881 2882
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2883 2884 2885
    ],
)

2886 2887 2888 2889 2890
cuda_py_test(
    name = "conv2d_backprop_filter_grad_test",
    size = "medium",
    srcs = ["conv2d_backprop_filter_grad_test.py"],
    additional_deps = [
2891
        "//third_party/py/numpy",
2892 2893 2894 2895 2896
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2897
    ],
A
A. Unique TensorFlower 已提交
2898
    shard_count = 2,
2899 2900 2901
    tags = [
        "optonly",  # flaky timeouts unless optimized
    ],
2902 2903 2904 2905 2906 2907 2908
)

cuda_py_test(
    name = "conv3d_transpose_test",
    size = "medium",
    srcs = ["conv3d_transpose_test.py"],
    additional_deps = [
2909
        "//third_party/py/numpy",
2910 2911 2912 2913
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2914 2915 2916 2917 2918
    ],
)

cuda_py_test(
    name = "conv_ops_test",
A
A. Unique TensorFlower 已提交
2919
    size = "medium",
2920 2921
    srcs = ["conv_ops_test.py"],
    additional_deps = [
2922
        "//third_party/py/numpy",
2923
        "//tensorflow/python:array_ops",
2924
        "//tensorflow/python:client",
2925 2926 2927 2928 2929 2930 2931 2932 2933 2934
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:nn",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
        "//tensorflow/python:platform",
        "//tensorflow/python:random_ops",
        "//tensorflow/python:variables",
2935
    ],
2936
    shard_count = 4,
A
A. Unique TensorFlower 已提交
2937 2938 2939
    tags = [
        "optonly",  # times out
    ],
2940 2941 2942 2943 2944 2945 2946
)

cuda_py_test(
    name = "depthwise_conv_op_test",
    size = "medium",  # http://b/30603882
    srcs = ["depthwise_conv_op_test.py"],
    additional_deps = [
2947
        "//third_party/py/numpy",
2948 2949
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2950
        "//tensorflow/python:array_ops",
2951 2952 2953
        "//tensorflow/python:nn",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2954
    ],
Y
Yanan Cao 已提交
2955 2956
    # TODO(b/118842098): Re-enable this test in Kokoro.
    tags = ["no_oss"],
2957 2958
)

2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971
tf_py_test(
    name = "neon_depthwise_conv_op_test",
    size = "medium",
    srcs = ["neon_depthwise_conv_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:nn",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
    ],
J
Jonathan Hseu 已提交
2972
    tags = ["no_windows"],
2973 2974
)

2975 2976 2977 2978 2979
cuda_py_test(
    name = "division_future_test",
    size = "medium",
    srcs = ["division_future_test.py"],
    additional_deps = [
2980
        "//third_party/py/numpy",
2981 2982
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
2983
    ],
J
Jonathan Hseu 已提交
2984
    tags = ["manual"],
2985 2986 2987 2988
)

cuda_py_test(
    name = "pooling_ops_3d_test",
2989
    size = "medium",
2990 2991
    srcs = ["pooling_ops_3d_test.py"],
    additional_deps = [
2992
        "//third_party/py/numpy",
2993 2994 2995 2996
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
2997
    ],
2998
    tags = ["no_rocm"],
2999 3000 3001 3002 3003 3004 3005
)

cuda_py_test(
    name = "pooling_ops_test",
    size = "medium",
    srcs = ["pooling_ops_test.py"],
    additional_deps = [
3006
        "//third_party/py/numpy",
3007 3008 3009 3010 3011 3012 3013 3014
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
        "//tensorflow/python:nn_ops_gen",
3015
    ],
A
A. Unique TensorFlower 已提交
3016
    shard_count = 4,
3017 3018 3019 3020 3021 3022 3023
)

cuda_py_test(
    name = "rnn_test",
    size = "medium",
    srcs = ["rnn_test.py"],
    additional_deps = [
3024
        "//third_party/py/numpy",
3025 3026
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
3027
        "//tensorflow/python:client",
3028 3029 3030 3031
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:data_flow_grad",
        "//tensorflow/python:framework_for_generated_wrappers",
3032
        "//tensorflow/python:framework_test_lib",
3033 3034 3035 3036 3037 3038 3039
        "//tensorflow/python:gradients",
        "//tensorflow/python:init_ops",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:rnn",
        "//tensorflow/python:rnn_cell",
        "//tensorflow/python:sparse_grad",
        "//tensorflow/python:tensor_array_grad",
3040
        "//tensorflow/python:tensor_array_ops",
3041
        "//tensorflow/python:variables",
3042
        "//tensorflow/python/eager:context",
3043
    ],
E
Eugene Brevdo 已提交
3044
    shard_count = 10,
3045 3046
)

E
Eugene Brevdo 已提交
3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057
cuda_py_test(
    name = "rnn_cell_test",
    size = "medium",
    srcs = ["rnn_cell_test.py"],
    additional_deps = [
        "@absl_py//absl/testing:parameterized",
        "//third_party/py/numpy",
        "//tensorflow/python/eager:context",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
3058
        "//tensorflow/python:control_flow_v2_toggles",
E
Eugene Brevdo 已提交
3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:gradients",
        "//tensorflow/python:init_ops",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:platform",
        "//tensorflow/python:rnn",
        "//tensorflow/python:rnn_cell",
        "//tensorflow/python:tensor_array_ops",
        "//tensorflow/python:util",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
    ],
3072
    shard_count = 15,
S
Saurabh Saxena 已提交
3073
    tags = ["no_windows"],  # b/139739217
E
Eugene Brevdo 已提交
3074 3075
)

3076 3077
cuda_py_test(
    name = "scatter_ops_test",
A
A. Unique TensorFlower 已提交
3078
    size = "medium",  # NOTE: This is not run by default.
3079 3080
    srcs = ["scatter_ops_test.py"],
    additional_deps = [
3081
        "//third_party/py/numpy",
3082 3083 3084 3085
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:state_ops",
        "//tensorflow/python:variables",
3086
    ],
A
A. Unique TensorFlower 已提交
3087 3088
    shard_count = 2,
    tags = ["optonly"],
3089 3090 3091 3092
)

cuda_py_test(
    name = "slice_op_test",
A
A. Unique TensorFlower 已提交
3093
    size = "medium",
3094 3095
    srcs = ["slice_op_test.py"],
    additional_deps = [
3096
        "//third_party/py/numpy",
3097 3098 3099 3100 3101
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
3102
    ],
A
A. Unique TensorFlower 已提交
3103
    tags = ["no_windows"],  # b/126916429
3104 3105
)

3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121
cuda_py_test(
    name = "huge_slice_op_test",
    size = "medium",
    srcs = ["huge_slice_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
    tags = [
        "no_oss",  # Requires 4GB+ RAM
    ],
)

3122 3123 3124 3125 3126
cuda_py_test(
    name = "sparse_matmul_op_test",
    size = "medium",
    srcs = ["sparse_matmul_op_test.py"],
    additional_deps = [
3127
        "//third_party/py/numpy",
3128 3129 3130
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
3131
    ],
J
Jonathan Hseu 已提交
3132
    tags = ["no_windows"],
3133 3134 3135 3136 3137 3138 3139
)

cuda_py_test(
    name = "sparse_ops_test",
    size = "medium",
    srcs = ["sparse_ops_test.py"],
    additional_deps = [
3140
        "//third_party/py/numpy",
3141 3142 3143 3144 3145 3146 3147 3148 3149
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:nn_ops",
        "//tensorflow/python:platform_test",
        "//tensorflow/python:sparse_grad",
        "//tensorflow/python:sparse_ops",
3150
    ],
3151
    shard_count = 5,
3152 3153 3154 3155
    tags = [
        "noasan",
        "optonly",  # b/77589990
    ],
3156 3157 3158 3159 3160 3161 3162
)

cuda_py_test(
    name = "sparse_tensor_dense_matmul_op_test",
    size = "medium",
    srcs = ["sparse_tensor_dense_matmul_op_test.py"],
    additional_deps = [
3163
        "//third_party/py/numpy",
3164 3165
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
3166
        "//tensorflow/python:client",
3167 3168 3169 3170 3171 3172 3173
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:platform",
        "//tensorflow/python:sparse_ops",
3174 3175 3176 3177 3178 3179 3180 3181 3182 3183
    ],
)

# TODO(gpapan): Revisit the gradient of extract_image_patches_op to resolve
# http://b/31080670.
cuda_py_test(
    name = "extract_image_patches_grad_test",
    size = "medium",
    srcs = ["extract_image_patches_grad_test.py"],
    additional_deps = [
3184
        "//third_party/py/numpy",
3185 3186 3187 3188
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
3189
    ],
3190
    shard_count = 3,
3191 3192 3193
    tags = ["notap"],  # http://b/31080670
)

3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204
cuda_py_test(
    name = "extract_volume_patches_grad_test",
    size = "medium",
    srcs = ["extract_volume_patches_grad_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
A
A. Unique TensorFlower 已提交
3205 3206
    tags = [
        "no_pip",
3207
        "nomac",  # http://b/139946976
A
A. Unique TensorFlower 已提交
3208 3209
        "notap",  # http://b/31080670
    ],
3210 3211
)

3212 3213
cuda_py_test(
    name = "stage_op_test",
J
Jonathan Hseu 已提交
3214
    size = "medium",
3215 3216 3217 3218 3219 3220 3221 3222 3223
    srcs = ["stage_op_test.py"],
    additional_deps = [
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:util",
        "//tensorflow/python:data_flow_ops",
    ],
J
Jonathan Hseu 已提交
3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236
)

cuda_py_test(
    name = "map_stage_op_test",
    size = "medium",
    srcs = ["map_stage_op_test.py"],
    additional_deps = [
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:util",
        "//tensorflow/python:data_flow_ops",
3237
    ],
3238
    tags = ["no_oss"],  # b/124474135
3239 3240
)

3241 3242 3243 3244 3245
cuda_py_test(
    name = "concat_op_test",
    size = "medium",
    srcs = ["concat_op_test.py"],
    additional_deps = [
3246
        "//third_party/py/numpy",
3247 3248 3249 3250 3251 3252 3253 3254
        "//tensorflow/python:array_ops",
        "//tensorflow/python:array_ops_gen",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:variables",
3255
    ],
A
A. Unique TensorFlower 已提交
3256
    tags = ["no_windows"],  # b/126916429
3257 3258 3259 3260
)

cuda_py_test(
    name = "large_concat_op_test",
3261
    size = "medium",
3262 3263
    srcs = ["large_concat_op_test.py"],
    additional_deps = [
3264 3265 3266
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
3267 3268 3269 3270 3271
    ],
    tags = [
        "nomsan",
        "notsan",
    ],
3272 3273 3274 3275 3276 3277
)

cuda_py_test(
    name = "conv_ops_3d_test",
    size = "medium",
    srcs = ["conv_ops_3d_test.py"],
3278 3279 3280 3281 3282 3283
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:nn_ops",
    ],
3284
    shard_count = 30,
3285 3286 3287 3288 3289 3290
)

cuda_py_test(
    name = "cwise_ops_test",
    size = "medium",
    srcs = ["cwise_ops_test.py"],
3291
    additional_deps = [
3292
        "//third_party/py/numpy",
3293 3294 3295 3296 3297 3298 3299
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:math_ops_gen",
G
Geoffrey Irving 已提交
3300
        "//tensorflow/python:nn_grad",
3301 3302 3303
        "//tensorflow/python:platform",
        "//tensorflow/python:variables",
    ],
3304
    shard_count = 50,
3305
    tags = ["no_windows_gpu"],
3306 3307
)

3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325
cuda_py_test(
    name = "cwise_ops_binary_test",
    size = "medium",
    srcs = ["cwise_ops_binary_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:math_ops_gen",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:platform",
        "//tensorflow/python:variables",
    ],
    shard_count = 50,
3326 3327
    # b/140155647: Error just outside of tolerance
    xla_enable_strict_auto_jit = False,
3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347
)

cuda_py_test(
    name = "cwise_ops_unary_test",
    size = "medium",
    srcs = ["cwise_ops_unary_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:math_ops_gen",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:platform",
        "//tensorflow/python:variables",
    ],
    shard_count = 50,
3348
    tags = ["no_windows_gpu"],
3349 3350
    # b/140155706: nans in result
    xla_enable_strict_auto_jit = False,
3351 3352
)

3353 3354 3355 3356
cuda_py_test(
    name = "embedding_ops_test",
    size = "medium",
    srcs = ["embedding_ops_test.py"],
3357
    additional_deps = [
3358
        "//third_party/py/numpy",
3359 3360 3361 3362 3363 3364
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:embedding_ops",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
3365
        "//tensorflow/python:init_ops",
3366
        "//tensorflow/python:linalg_ops",
3367 3368 3369 3370 3371 3372 3373 3374
        "//tensorflow/python:math_ops",
        "//tensorflow/python:partitioned_variables",
        "//tensorflow/python:platform",
        "//tensorflow/python:state_ops",
        "//tensorflow/python:util",
        "//tensorflow/python:variable_scope",
        "//tensorflow/python:variables",
    ],
3375 3376 3377 3378 3379 3380 3381
    shard_count = 20,
)

cuda_py_test(
    name = "linalg_grad_test",
    size = "medium",
    srcs = ["linalg_grad_test.py"],
3382
    additional_deps = [
3383
        "//third_party/py/numpy",
3384 3385 3386 3387 3388 3389
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:gradients",
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
3390
        "//tensorflow/python/ops/linalg",
3391
    ],
3392 3393 3394 3395 3396 3397 3398
    shard_count = 20,
)

cuda_py_test(
    name = "matrix_band_part_op_test",
    size = "medium",
    srcs = ["matrix_band_part_op_test.py"],
3399
    additional_deps = [
3400
        "//third_party/py/numpy",
3401 3402 3403 3404
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
    ],
3405 3406 3407
    shard_count = 20,
)

3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424
tf_py_test(
    name = "eig_op_test",
    size = "medium",
    srcs = ["eig_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
    ],
    data = ["//tensorflow/python/kernel_tests/testdata:self_adjoint_eig_op_test_files"],
    shard_count = 20,
    tags = [
        "no_rocm",  # flaky test
        "no_windows",
3425
        "nomsan",  # TODO(b/143081496)
3426 3427 3428 3429
    ],
    # b/127344411: xla_enable_strict_auto_jit = True,
)

3430 3431 3432 3433
cuda_py_test(
    name = "self_adjoint_eig_op_test",
    size = "medium",
    srcs = ["self_adjoint_eig_op_test.py"],
3434
    additional_deps = [
3435
        "//third_party/py/numpy",
3436 3437 3438 3439 3440 3441
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
    ],
3442
    data = ["//tensorflow/python/kernel_tests/testdata:self_adjoint_eig_op_test_files"],
3443
    shard_count = 20,
3444 3445 3446
    tags = [
        "no_windows",
    ],
3447 3448
    # TODO(b/127344411): This test passes because XLA does not actually cluster
    # the self_adjoint_eig op.
3449 3450
)

A
A. Unique TensorFlower 已提交
3451 3452 3453 3454
cuda_py_test(
    name = "qr_op_test",
    size = "medium",
    srcs = ["qr_op_test.py"],
3455
    additional_deps = [
3456
        "//third_party/py/numpy",
3457 3458 3459 3460 3461 3462
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
    ],
A
A. Unique TensorFlower 已提交
3463
    shard_count = 20,
3464 3465 3466
    tags = [
        "no_rocm",  # TODO(rocm): feature not supported on ROCm platform
    ],
A
A. Unique TensorFlower 已提交
3467 3468
)

3469 3470 3471 3472
cuda_py_test(
    name = "svd_op_test",
    size = "medium",
    srcs = ["svd_op_test.py"],
3473
    additional_deps = [
3474
        "//third_party/py/numpy",
3475 3476 3477
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
3478
        "//tensorflow/python:gradients_impl",
3479 3480 3481
        "//tensorflow/python:linalg_ops",
        "//tensorflow/python:math_ops",
    ],
3482
    shard_count = 20,
3483 3484 3485 3486
    tags = [
        "no_oss",  # b/117185141.
        "nomsan",  # TODO(b/117236102): Re-enable in msan build.
    ],
3487 3488
    # TODO(b/127344411): This test passes because XLA does not actually cluster
    # the svd op.
3489 3490
)

3491 3492 3493 3494
cuda_py_test(
    name = "norm_op_test",
    size = "medium",
    srcs = ["norm_op_test.py"],
3495
    additional_deps = [
3496
        "//third_party/py/numpy",
3497 3498 3499 3500 3501
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
    ],
3502
    shard_count = 20,
3503 3504 3505 3506 3507
    # TODO(b/117236102): Re-enable in msan build.
    tags = [
        "no_windows_gpu",
        "nomsan",
    ],
3508 3509
)

S
sleighsoft 已提交
3510 3511 3512 3513 3514 3515 3516 3517
cuda_py_test(
    name = "normalize_op_test",
    size = "medium",
    srcs = ["normalize_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
S
sleighsoft 已提交
3518
        "//tensorflow/python:nn",
S
sleighsoft 已提交
3519 3520
    ],
    shard_count = 20,
3521 3522 3523 3524 3525
    # TODO(b/117236102): Re-enable in msan build.
    tags = [
        "no_windows_gpu",
        "nomsan",
    ],
S
sleighsoft 已提交
3526 3527
)

3528 3529 3530 3531
cuda_py_test(
    name = "tensordot_op_test",
    size = "medium",
    srcs = ["tensordot_op_test.py"],
3532
    additional_deps = [
3533
        "//third_party/py/numpy",
3534 3535 3536 3537 3538 3539
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
    ],
3540 3541 3542
    shard_count = 20,
)

3543 3544 3545 3546
sycl_py_test(
    name = "basic_gpu_test",
    size = "small",
    srcs = ["basic_gpu_test.py"],
3547
    additional_deps = [
3548
        "//third_party/py/numpy",
3549 3550 3551 3552 3553 3554
        "//tensorflow/python:array_ops_gen",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:math_ops_gen",
    ],
3555 3556
)

3557 3558
tf_py_test(
    name = "sets_test",
3559
    size = "medium",
3560
    srcs = ["sets_test.py"],
3561
    additional_deps = [
3562
        "//third_party/py/numpy",
3563 3564 3565 3566 3567 3568 3569 3570 3571
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:platform_test",
        "//tensorflow/python:sets",
        "//tensorflow/python:sparse_ops",
    ],
3572 3573
)

3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591
tf_py_test(
    name = "weights_broadcast_test",
    size = "small",
    srcs = ["weights_broadcast_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:platform",
        "//tensorflow/python:weights_broadcast_ops",
    ],
    shard_count = 3,
)

3592 3593
tf_py_test(
    name = "metrics_test",
A
A. Unique TensorFlower 已提交
3594
    size = "medium",
3595
    srcs = ["metrics_test.py"],
3596
    additional_deps = [
3597
        "//third_party/py/numpy",
3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:data_flow_grad",
        "//tensorflow/python:data_flow_ops",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:metrics",
        "//tensorflow/python:nn_grad",
        "//tensorflow/python:random_ops",
        "//tensorflow/python:variables",
    ],
3610 3611
    shard_count = 20,
    tags = ["no_windows_gpu"],
3612 3613 3614 3615 3616 3617
)

tf_py_test(
    name = "confusion_matrix_test",
    size = "small",
    srcs = ["confusion_matrix_test.py"],
3618
    additional_deps = [
3619
        "//third_party/py/numpy",
3620 3621 3622 3623 3624 3625 3626
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:confusion_matrix",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:random_ops",
    ],
3627 3628
)

3629
cuda_py_test(
3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640
    name = "bucketize_op_test",
    size = "small",
    srcs = ["bucketize_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:math_ops",
    ],
)

3641 3642 3643 3644 3645 3646 3647 3648 3649 3650
tf_py_test(
    name = "sparse_cross_op_test",
    size = "small",
    srcs = ["sparse_cross_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:sparse_ops",
    ],
A
A. Unique TensorFlower 已提交
3651
    tags = ["no_windows"],
3652 3653
)

3654 3655 3656 3657 3658
tf_py_test(
    name = "garbage_collection_test",
    size = "small",
    srcs = ["garbage_collection_test.py"],
    additional_deps = [
3659 3660
        "//tensorflow/python/eager:context",
        "//tensorflow/python:framework_test_lib",
3661
        "//tensorflow/python:resource_variable_ops",
3662 3663
        "//tensorflow/python:dtypes",
        "//tensorflow/python:tensor_array_ops",
3664 3665 3666 3667
        "//tensorflow/python:client_testlib",
    ],
)

A
Anna R 已提交
3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683
# Custom op tests
tf_custom_op_library(
    name = "ackermann_op.so",
    srcs = ["ackermann_op.cc"],
)

tf_py_test(
    name = "ackermann_test",
    size = "small",
    srcs = ["ackermann_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:platform",
    ],
    data = [":ackermann_op.so"],
A
A. Unique TensorFlower 已提交
3684 3685 3686 3687
    tags = [
        "no_pip",
        "notap",
    ],
A
Anna R 已提交
3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705
)

tf_custom_op_library(
    name = "duplicate_op.so",
    srcs = ["duplicate_op.cc"],
)

tf_py_test(
    name = "duplicate_op_test",
    size = "small",
    srcs = ["duplicate_op_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework",
        "//tensorflow/python:math_ops",
        "//tensorflow/python:platform",
    ],
    data = [":duplicate_op.so"],
A
A. Unique TensorFlower 已提交
3706 3707 3708 3709
    tags = [
        "no_pip",
        "notap",
    ],
A
Anna R 已提交
3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727
)

tf_custom_op_library(
    name = "invalid_op.so",
    srcs = ["invalid_op.cc"],
)

tf_py_test(
    name = "invalid_op_test",
    size = "small",
    srcs = ["invalid_op_test.py"],
    additional_deps = [
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:errors",
        "//tensorflow/python:framework",
        "//tensorflow/python:platform",
    ],
    data = [":invalid_op.so"],
A
A. Unique TensorFlower 已提交
3728 3729 3730 3731
    tags = [
        "no_pip",
        "notap",
    ],
A
Anna R 已提交
3732
)
3733

3734
cuda_py_test(
3735
    name = "cond_v2_test",
3736
    size = "medium",
3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747
    srcs = ["cond_v2_test.py"],
    additional_deps = [
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:cond_v2",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:control_flow_ops",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:gradients",
3748
        "//tensorflow/python:tensor_array_ops",
3749
        "//tensorflow/python:test_ops",
3750
        "//tensorflow/python:training",
3751
        "//tensorflow/python:while_v2",
3752
        "//tensorflow/python/compat",
3753 3754 3755
    ],
    grpc_enabled = True,
)
3756

3757
cuda_py_test(
3758 3759 3760 3761 3762 3763 3764
    name = "while_v2_test",
    size = "medium",
    srcs = ["while_v2_test.py"],
    additional_deps = [
        "@absl_py//absl/testing:parameterized",
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
3765
        "//tensorflow/python/eager:def_function",
3766 3767 3768
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:constant_op",
        "//tensorflow/python:control_flow_ops",
3769
        "//tensorflow/python:control_flow_util",
3770
        "//tensorflow/python:control_flow_v2_toggles",
3771 3772 3773
        "//tensorflow/python:dtypes",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_ops",
3774
        "//tensorflow/python:functional_ops",
3775 3776
        "//tensorflow/python:gradients_impl",
        "//tensorflow/python:list_ops",
3777 3778
        "//tensorflow/python:math_ops",
        "//tensorflow/python:tensor_array_grad",
3779 3780 3781 3782 3783
        "//tensorflow/python:tf_optimizer",
        "//tensorflow/python:while_v2",
    ],
    grpc_enabled = True,
)
3784 3785 3786 3787 3788 3789

cuda_py_test(
    name = "critical_section_test",
    size = "medium",
    srcs = ["critical_section_test.py"],
    additional_deps = [
3790
        "@absl_py//absl/testing:parameterized",
3791 3792 3793 3794
        "//tensorflow/python:client_testlib",
        "//tensorflow/python/data/experimental/ops:prefetching_ops",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:control_flow_ops",
3795
        "//tensorflow/python:control_flow_v2_toggles",
3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:framework_test_lib",
        "//tensorflow/python:gradients",
        "//tensorflow/python:platform_test",
        "//tensorflow/python:resource_variable_ops",
        "//tensorflow/python:critical_section_ops",
        "//tensorflow/python:tensor_array_ops",
        "//tensorflow/python/data/ops:dataset_ops",
        "//tensorflow/python/eager:context",
    ],
)
3807

3808
cuda_py_test(
3809 3810 3811 3812 3813 3814 3815 3816 3817
    name = "tridiagonal_matmul_op_test",
    size = "medium",
    srcs = ["tridiagonal_matmul_op_test.py"],
    additional_deps = [
        "//third_party/py/numpy",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:framework_for_generated_wrappers",
        "//tensorflow/python:linalg_ops",
    ],
3818
    shard_count = 10,
3819 3820 3821 3822
    tags = [
        "no_rocm",
        "no_windows_gpu",
    ],
3823
)
P
Penporn Koanantakool 已提交
3824 3825 3826 3827 3828 3829 3830 3831 3832 3833

cuda_py_test(
    name = "sparse_csr_matrix_ops_test",
    size = "medium",
    srcs = ["sparse_csr_matrix_ops_test.py"],
    additional_deps = [
        "//tensorflow/python/ops/linalg/sparse",
        "//tensorflow/python/ops/linalg/sparse:gen_sparse_csr_matrix_ops",
    ],
    main = "sparse_csr_matrix_ops_test.py",
3834
    shard_count = 10,
3835 3836 3837 3838
    tags = [
        "no_rocm",
        "no_windows_gpu",
    ],
P
Penporn Koanantakool 已提交
3839 3840 3841 3842 3843 3844 3845 3846 3847 3848
)

cuda_py_test(
    name = "csr_sparse_matrix_test",
    size = "medium",
    srcs = ["csr_sparse_matrix_test.py"],
    additional_deps = [
        "//tensorflow/python/ops/linalg/sparse",
    ],
    main = "csr_sparse_matrix_test.py",
3849 3850 3851 3852
    tags = [
        "no_rocm",
        "no_windows_gpu",
    ],
P
Penporn Koanantakool 已提交
3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863
)

cuda_py_test(
    name = "sparse_csr_matrix_grad_test",
    size = "medium",
    srcs = ["sparse_csr_matrix_grad_test.py"],
    additional_deps = [
        "//tensorflow/python/ops/linalg/sparse",
    ],
    main = "sparse_csr_matrix_grad_test.py",
    shard_count = 50,
3864
    tags = ["no_rocm"],
P
Penporn Koanantakool 已提交
3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875
)

cuda_py_test(
    name = "sparse_csr_matrix_dense_mat_mul_grad_test",
    size = "medium",
    srcs = ["sparse_csr_matrix_dense_mat_mul_grad_test.py"],
    additional_deps = [
        "//tensorflow/python/ops/linalg/sparse",
    ],
    main = "sparse_csr_matrix_dense_mat_mul_grad_test.py",
    shard_count = 50,
3876 3877 3878 3879
    tags = [
        "no_rocm",
        "no_windows_gpu",
    ],
P
Penporn Koanantakool 已提交
3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890
)

cuda_py_test(
    name = "sparse_csr_matrix_sparse_mat_mul_grad_test",
    size = "medium",
    srcs = ["sparse_csr_matrix_sparse_mat_mul_grad_test.py"],
    additional_deps = [
        "//tensorflow/python/ops/linalg/sparse",
    ],
    main = "sparse_csr_matrix_sparse_mat_mul_grad_test.py",
    shard_count = 50,
3891 3892 3893 3894
    tags = [
        "no_rocm",
        "no_windows_gpu",
    ],
P
Penporn Koanantakool 已提交
3895
)