package(default_visibility = ["//tensorflow:internal"]) licenses(["notice"]) # Apache 2.0 exports_files(["LICENSE"]) load("//tensorflow:tensorflow.bzl", "cuda_py_test") load("//tensorflow:tensorflow.bzl", "py_test") py_test( name = "bucket_by_sequence_length_test", size = "medium", srcs = ["bucket_by_sequence_length_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:sparse_tensor", "//tensorflow/python:tensor_shape", "//tensorflow/python/data/experimental/ops:grouping", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) cuda_py_test( name = "copy_to_device_test", size = "small", srcs = ["copy_to_device_test.py"], additional_deps = [ "//tensorflow/python/data/experimental/ops:prefetching_ops", "//tensorflow/core:protos_all_py", "//tensorflow/python:client_testlib", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python:dtypes", "//tensorflow/python:framework_ops", "//tensorflow/python:framework_test_lib", "//tensorflow/python/compat:compat", "//tensorflow/python/data/ops:dataset_ops", "//tensorflow/python/data/ops:iterator_ops", ], tags = ["no_windows_gpu"], ) py_test( name = "counter_test", size = "small", srcs = ["counter_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python/data/experimental/ops:counter", "//tensorflow/python/data/kernel_tests:test_base", ], ) py_test( name = "csv_dataset_test", size = "medium", srcs = ["csv_dataset_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:framework_test_lib", "//tensorflow/python:parsing_ops", "//tensorflow/python:platform", "//tensorflow/python:platform_test", "//tensorflow/python:session", "//tensorflow/python/data/experimental/ops:error_ops", "//tensorflow/python/data/experimental/ops:readers", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:readers", "//tensorflow/python/eager:context", "//third_party/py/numpy", ], ) py_test( name = "dense_to_sparse_batch_test", srcs = ["dense_to_sparse_batch_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python/data/experimental/ops:batching", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) py_test( name = "directed_interleave_dataset_test", size = "medium", srcs = ["directed_interleave_dataset_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:client_testlib", "//tensorflow/python:errors", "//tensorflow/python:random_seed", "//tensorflow/python/data/experimental/ops:interleave_ops", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) py_test( name = "enumerate_dataset_test", size = "small", srcs = ["enumerate_dataset_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:tensor_shape", "//tensorflow/python/data/experimental/ops:enumerate_ops", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", ], ) py_test( name = "filter_dataset_op_test", size = "medium", srcs = ["filter_dataset_op_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:errors", "//tensorflow/python:framework_ops", "//tensorflow/python:io_ops", "//tensorflow/python:math_ops", "//tensorflow/python:util", "//tensorflow/python/data/experimental/ops:optimization", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) cuda_py_test( name = "function_buffering_resource_test", size = "small", srcs = ["function_buffering_resource_test.py"], additional_deps = [ "//tensorflow/python/data/experimental/ops:prefetching_ops", "//tensorflow/core:protos_all_py", "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python:dtypes", "//tensorflow/python:framework_ops", "//tensorflow/python:framework_test_lib", "//tensorflow/python:function", "//tensorflow/python:resource_variable_ops", "//tensorflow/python/data/ops:dataset_ops", "//tensorflow/python/data/ops:iterator_ops", ], tags = ["no_windows_gpu"], ) py_test( name = "get_single_element_test", size = "small", srcs = ["get_single_element_test.py"], deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:sparse_tensor", "//tensorflow/python/data/experimental/ops:get_single_element", "//tensorflow/python/data/experimental/ops:grouping", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "@absl_py//absl/testing:parameterized", ], ) py_test( name = "group_by_reducer_test", size = "medium", srcs = ["group_by_reducer_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:math_ops", "//tensorflow/python:sparse_tensor", "//tensorflow/python:tensor_shape", "//tensorflow/python/data/experimental/ops:grouping", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) py_test( name = "group_by_window_test", size = "medium", srcs = ["group_by_window_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:framework_ops", "//tensorflow/python:math_ops", "//tensorflow/python:string_ops", "//tensorflow/python:tensor_shape", "//tensorflow/python/data/experimental/ops:grouping", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) py_test( name = "ignore_errors_test", srcs = ["ignore_errors_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:errors", "//tensorflow/python:io_ops", "//tensorflow/python:util", "//tensorflow/python/data/experimental/ops:error_ops", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) py_test( name = "indexed_dataset_ops_test", srcs = ["indexed_dataset_ops_test.py"], deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:experimental_dataset_ops_gen", "//tensorflow/python/data/experimental/ops:indexed_dataset_ops", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) py_test( name = "make_batched_features_dataset_test", size = "medium", srcs = ["make_batched_features_dataset_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ ":reader_dataset_ops_test_base", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:framework_ops", "//tensorflow/python:parsing_ops", "//tensorflow/python/data/experimental/ops:readers", "//tensorflow/python/data/ops:readers", "//tensorflow/python/data/util:nest", "//third_party/py/numpy", ], ) py_test( name = "make_csv_dataset_test", size = "medium", srcs = ["make_csv_dataset_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:framework_ops", "//tensorflow/python/data/experimental/ops:readers", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/util:nest", "//third_party/py/numpy", ], ) py_test( name = "make_tf_record_dataset_test", size = "medium", srcs = ["make_tf_record_dataset_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ ":reader_dataset_ops_test_base", "//tensorflow/python:client_testlib", "//tensorflow/python:errors", "//tensorflow/python:framework_ops", "//tensorflow/python:string_ops", "//tensorflow/python/data/experimental/ops:readers", "//tensorflow/python/data/util:nest", ], ) py_test( name = "map_and_batch_test", size = "medium", srcs = ["map_and_batch_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:math_ops", "//tensorflow/python:script_ops", "//tensorflow/python:sparse_tensor", "//tensorflow/python/data/experimental/ops:batching", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", "@absl_py//absl/testing:parameterized", ], ) py_test( name = "map_defun_op_test", size = "small", srcs = ["map_defun_op_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:check_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:data_flow_ops", "//tensorflow/python:dtypes", "//tensorflow/python:framework_ops", "//tensorflow/python:function", "//tensorflow/python:functional_ops", "//tensorflow/python:math_ops", "//tensorflow/python:session", "//tensorflow/python/data/experimental/ops:map_defun", "//tensorflow/python/data/kernel_tests:test_base", ], ) py_test( name = "override_threadpool_test", size = "small", srcs = ["override_threadpool_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:script_ops", "//tensorflow/python/data/experimental/ops:threadpool", "//tensorflow/python/data/experimental/ops:unique", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", "@absl_py//absl/testing:parameterized", ], ) py_test( name = "parallel_interleave_test", size = "medium", srcs = ["parallel_interleave_test.py"], srcs_version = "PY2AND3", tags = [ "no_oss", "no_pip", "notap", ], deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:math_ops", "//tensorflow/python:script_ops", "//tensorflow/python:sparse_ops", "//tensorflow/python:sparse_tensor", "//tensorflow/python/data/experimental/ops:interleave_ops", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "@six_archive//:six", ], ) py_test( name = "parse_example_dataset_test", size = "small", srcs = ["parse_example_dataset_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/core:protos_all_py", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:framework_ops", "//tensorflow/python:parsing_ops", "//tensorflow/python:platform", "//tensorflow/python:sparse_tensor", "//tensorflow/python/data/experimental/ops:parsing_ops", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//tensorflow/python/data/util:nest", "//third_party/py/numpy", ], ) cuda_py_test( name = "prefetch_to_device_test", size = "small", srcs = ["prefetch_to_device_test.py"], additional_deps = [ "//tensorflow/python/data/experimental/ops:prefetching_ops", "//tensorflow/core:protos_all_py", "//tensorflow/python:client_testlib", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python:dtypes", "//tensorflow/python:framework_ops", "//tensorflow/python:framework_test_lib", "//tensorflow/python/data/ops:dataset_ops", ], tags = ["no_windows_gpu"], ) py_library( name = "reader_dataset_ops_test_base", testonly = 1, srcs = [ "reader_dataset_ops_test_base.py", ], srcs_version = "PY2AND3", visibility = [ "//tensorflow/python/data/experimental/kernel_tests:__pkg__", "//tensorflow/python/data/experimental/kernel_tests/serialization:__pkg__", ], deps = [ "//tensorflow/core:protos_all_py", "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:dtypes", "//tensorflow/python:lib", "//tensorflow/python:parsing_ops", "//tensorflow/python:util", "//tensorflow/python/data/experimental/ops:readers", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:iterator_ops", "//tensorflow/python/data/ops:readers", ], ) py_test( name = "rejection_resample_test", size = "medium", srcs = ["rejection_resample_test.py"], shard_count = 2, srcs_version = "PY2AND3", tags = [ "noasan", "optonly", ], deps = [ "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:math_ops", "//tensorflow/python:random_ops", "//tensorflow/python:string_ops", "//tensorflow/python:util", "//tensorflow/python/data/experimental/ops:resampling", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", "@absl_py//absl/testing:parameterized", "@six_archive//:six", ], ) py_test( name = "restructured_dataset_test", size = "medium", srcs = ["restructured_dataset_test.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python/data/experimental/ops:batching", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//tensorflow/python/data/util:nest", ], ) py_test( name = "scan_test", size = "small", srcs = ["scan_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ "//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:sparse_tensor", "//tensorflow/python/data/experimental/ops:scan_ops", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//tensorflow/python/eager:context", "//third_party/py/numpy", ], ) py_test( name = "shuffle_and_repeat_test", size = "medium", srcs = ["shuffle_and_repeat_test.py"], srcs_version = "PY2AND3", tags = [ "no_pip", "optonly", ], deps = [ "//tensorflow/python:client_testlib", "//tensorflow/python:errors", "//tensorflow/python:framework_ops", "//tensorflow/python/data/experimental/ops:shuffle_ops", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) py_library( name = "sql_dataset_test_base", srcs = ["sql_dataset_test_base.py"], srcs_version = "PY2AND3", visibility = [ "//tensorflow/python/data/experimental/kernel_tests:__pkg__", "//tensorflow/python/data/experimental/kernel_tests/serialization:__pkg__", ], deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python/data/experimental/ops:readers", "//tensorflow/python/data/kernel_tests:test_base", "@org_sqlite//:python", ], ) py_test( name = "sql_dataset_test", size = "small", srcs = ["sql_dataset_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ ":sql_dataset_test_base", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:errors", ], ) py_test( name = "stats_dataset_ops_test", size = "medium", srcs = ["stats_dataset_ops_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ ":reader_dataset_ops_test_base", ":stats_dataset_test_base", "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:errors", "//tensorflow/python:framework_ops", "//tensorflow/python/data/experimental/ops:stats_ops", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", ], ) py_library( name = "stats_dataset_test_base", srcs = ["stats_dataset_test_base.py"], srcs_version = "PY2AND3", deps = [ "//tensorflow/core:protos_all_py", "//tensorflow/python:client_testlib", "//tensorflow/python/data/kernel_tests:test_base", ], ) py_test( name = "tf_record_writer_test", size = "small", srcs = ["tf_record_writer_test.py"], deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:lib", "//tensorflow/python:util", "//tensorflow/python/data/experimental/ops:writers", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//tensorflow/python/data/ops:readers", ], ) py_test( name = "unbatch_test", size = "medium", srcs = ["unbatch_test.py"], deps = [ "//tensorflow/python:array_ops", "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:framework_ops", "//tensorflow/python:math_ops", "//tensorflow/python:session", "//tensorflow/python:sparse_tensor", "//tensorflow/python:string_ops", "//tensorflow/python:tensor_shape", "//tensorflow/python:util", "//tensorflow/python/data/experimental/ops:batching", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", "//third_party/py/numpy", "@absl_py//absl/testing:parameterized", ], ) py_test( name = "unique_test", size = "small", srcs = ["unique_test.py"], srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ "//tensorflow/python:client_testlib", "//tensorflow/python:dtypes", "//tensorflow/python:errors", "//tensorflow/python:util", "//tensorflow/python/data/experimental/ops:unique", "//tensorflow/python/data/kernel_tests:test_base", "//tensorflow/python/data/ops:dataset_ops", ], )