Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for RepeatDataset #26415

Merged
merged 4 commits into from Mar 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions tensorflow/core/kernels/data/BUILD
Expand Up @@ -404,6 +404,26 @@ tf_kernel_library(
],
)

tf_cc_test(
name = "repeat_dataset_op_test",
size = "small",
srcs = ["repeat_dataset_op_test.cc"],
deps = [
":dataset_test_base",
":dataset_utils",
":iterator_ops",
":repeat_dataset_op",
":tensor_slice_dataset_op",
"//tensorflow/core:core_cpu_internal",
"//tensorflow/core:dataset_ops_op_lib",
"//tensorflow/core:framework",
"//tensorflow/core:lib_internal",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
],
)

tf_kernel_library(
name = "take_dataset_op",
srcs = ["take_dataset_op.cc"],
Expand Down
4 changes: 2 additions & 2 deletions tensorflow/core/kernels/data/concatenate_dataset_op_test.cc
Expand Up @@ -45,12 +45,12 @@ class ConcatenateDatasetOpTest : public DatasetOpsTestBase {

// Creates a new ConcatenateDataset op kernel.
Status CreateConcatenateDatasetKernel(
const DataTypeVector &output_tyeps,
const DataTypeVector &output_types,
const std::vector<PartialTensorShape> &output_shapes,
std::unique_ptr<OpKernel> *op_kernel) {
node_def_ = test::function::NDef(
kNodeName, kOpName, {"input_dataset", "another_dataset"},
{{"output_types", output_tyeps}, {"output_shapes", output_shapes}});
{{"output_types", output_types}, {"output_shapes", output_shapes}});
TF_RETURN_IF_ERROR(CreateOpKernel(node_def_, op_kernel));
return Status::OK();
}
Expand Down