Skip to content

Commit

Permalink
Merge pull request tensorflow#27876 from feihugis:Test_BatchDataset
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 246524973
  • Loading branch information
tensorflower-gardener committed May 3, 2019
2 parents 11ea5a1 + 6e7399a commit 2c8a182
Show file tree
Hide file tree
Showing 3 changed files with 741 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/core/framework/dataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class GraphDefBuilderWrapper {
}

// Adds a node corresponding to the `DatasetType` to the Graph.
// Return value of `DatasetType::op_name()` is used as the op type for the
// Return value of `DatasetType::type_string()` is used as the op type for the
// node.
// Values for the output_types and output_shapes node attributes are also
// written if those attributes are defined in the OpDef.
Expand Down Expand Up @@ -549,7 +549,7 @@ class IteratorBase {
}

private:
friend class DatasetBase; // for access to `AddCleanupFunction`
friend class DatasetBase; // for access to `AddCleanupFunction`
friend class DatasetBaseIterator; // for access to `node_`

// Registers a cleanup function to be called upon object destruction.
Expand Down
20 changes: 20 additions & 0 deletions tensorflow/core/kernels/data/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,26 @@ tf_kernel_library(
],
)

tf_cc_test(
name = "batch_dataset_op_test",
size = "small",
srcs = ["batch_dataset_op_test.cc"],
deps = [
":batch_dataset_op",
":dataset_test_base",
":dataset_utils",
":iterator_ops",
":range_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 = "shard_dataset_op",
srcs = ["shard_dataset_op.cc"],
Expand Down

0 comments on commit 2c8a182

Please sign in to comment.