tensorflow/core/kernels/data/cache_dataset_ops_test.cc
// Test case 1: cache data in file.
Test case 1: cache data in file.
Test case 1 : cache data in file .
CacheDatasetParams CacheDatasetParams1() {
  auto tensor_slice_dataset_params = TensorSliceDatasetParams(
      {CreateTensor<int64_t>(TensorShape{3, 3, 1},
                                            {0, 1, 2, 3, 4, 5, 6, 7, 8})},
      "tensor_slice");
  return CacheDatasetParams(
      std::move(tensor_slice_dataset_params),
      io::JoinPath(testing::TmpDir(), "cache_data"),
      {DT_INT64},
      {PartialTensorShape({3, 1})}, kNodeName);
}
CacheDatasetParams CacheDatasetParams1 ( ) { auto tensor_slice_dataset_params = TensorSliceDatasetParams ( { CreateTensor < int64_t > ( TensorShape { 3 , 3 , 1 } , { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 } ) } , " " ) ; return CacheDatasetParams ( std :: move ( tensor_slice_dataset_params ) , io :: JoinPath ( testing :: TmpDir ( ) , " " ) , { DT_INT64 } , { PartialTensorShape ( { 3 , 1 } ) } , kNodeName ) ; }
Test case 1: cache data in file.
Test case 1 : cache data in file .
/*components=*/ /*node_name=*/ /*filename=*/ /*output_dtypes=*/ /*output_shapes=*/