Test case 3: cache data in memory.
| 123 | |
| 124 | // Test case 3: cache data in memory. |
| 125 | TestCase 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. |
| 140 | TestCase TestCase4() { |
no test coverage detected