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

Function TestCase2

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

Test case 2: cache empty data in file.

Source from the content-addressed store, hash-verified

112
113// Test case 2: cache empty data in file.
114TestCase TestCase2() {
115 return {/*input_tensors*/ {CreateTensor<int64>(TensorShape{0}, {})},
116 /*file_name*/ absl::StrCat(testing::TmpDir(), "/empty_cache_data"),
117 /*expected_outputs*/ {},
118 /*expected_output_dtypes*/ {DT_INT64},
119 /*expected_output_shapes*/ {PartialTensorShape({})},
120 /*expected_cardinality*/ 0,
121 /*breakpoints*/ {0, 2, 4, 11}};
122}
123
124// Test case 3: cache data in memory.
125TestCase TestCase3() {

Callers 1

Calls 3

TmpDirFunction · 0.85
PartialTensorShapeClass · 0.85
StrCatFunction · 0.50

Tested by

no test coverage detected