MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TestCase3

Function TestCase3

tensorflow/core/kernels/data/cache_dataset_ops_test.cc:125–137  ·  view source on GitHub ↗

Test case 3: cache data in memory.

Source from the content-addressed store, hash-verified

123
124// Test case 3: cache data in memory.
125TestCase TestCase3() {
126 return {/*input_tensors*/ {CreateTensor<int64>(TensorShape{3, 3, 1},
127 {0, 1, 2, 3, 4, 5, 6, 7, 8})},
128 /*file_name*/ "",
129 /*expected_outputs*/
130 {CreateTensor<int64>(TensorShape{3, 1}, {0, 1, 2}),
131 CreateTensor<int64>(TensorShape{3, 1}, {3, 4, 5}),
132 CreateTensor<int64>(TensorShape{3, 1}, {6, 7, 8})},
133 /*expected_output_dtypes*/ {DT_INT64},
134 /*expected_output_shapes*/ {PartialTensorShape({3, 1})},
135 /*expected_cardinality*/ 3,
136 /*breakpoints*/ {0, 2, 4, 11}};
137}
138
139// Test case 4: cache empty data in memory.
140TestCase TestCase4() {

Callers 1

Calls 1

PartialTensorShapeClass · 0.85

Tested by

no test coverage detected