@@ -155,6 +155,24 @@ public Tensor dummy_seed_generator(string name = null)
155155 throw new NotImplementedException ( "" ) ;
156156 }
157157
158+ public Tensor cache_dataset_v2 ( Tensor input_dataset , Tensor filename , Tensor cache ,
159+ TF_DataType [ ] output_types , TensorShape [ ] output_shapes ,
160+ string name = null )
161+ {
162+ if ( tf . Context . executing_eagerly ( ) )
163+ {
164+ var results = tf . Runner . TFE_FastPathExecute ( tf . Context , tf . Context . DeviceName ,
165+ "CacheDatasetV2" , name ,
166+ null ,
167+ input_dataset , filename , cache ,
168+ "output_types" , output_types ,
169+ "output_shapes" , output_shapes ) ;
170+ return results [ 0 ] ;
171+ }
172+
173+ throw new NotImplementedException ( "" ) ;
174+ }
175+
158176 /// <summary>
159177 /// Creates a dataset that batches `batch_size` elements from `input_dataset`.
160178 /// </summary>
@@ -187,6 +205,24 @@ public Tensor batch_dataset_v2(Tensor input_dataset, Tensor buffer_size,
187205 throw new NotImplementedException ( "" ) ;
188206 }
189207
208+ /// <summary>
209+ ///
210+ /// </summary>
211+ /// <param name="name"></param>
212+ /// <returns></returns>
213+ public Tensor dummy_memory_cache ( string name = "" )
214+ {
215+ if ( tf . Context . executing_eagerly ( ) )
216+ {
217+ var results = tf . Runner . TFE_FastPathExecute ( tf . Context , tf . Context . DeviceName ,
218+ "DummyMemoryCache" , name ,
219+ null ) ;
220+ return results [ 0 ] ;
221+ }
222+
223+ throw new NotImplementedException ( "" ) ;
224+ }
225+
190226 /// <summary>
191227 /// Creates a dataset that asynchronously prefetches elements from `input_dataset`.
192228 /// </summary>
@@ -354,6 +390,33 @@ public ITensorOrOperation make_iterator(Tensor dataset, Tensor iterator, string
354390 throw new NotImplementedException ( "" ) ;
355391 }
356392
393+ /// <summary>
394+ ///
395+ /// </summary>
396+ /// <param name="dataset"></param>
397+ /// <param name="iterator"></param>
398+ /// <param name="name"></param>
399+ /// <returns></returns>
400+ public Tensor map_dataset ( Tensor dataset , TF_DataType [ ] output_types , TensorShape [ ] output_shapes ,
401+ bool use_inter_op_parallelism = true , bool preserve_cardinality = false , string name = null )
402+ {
403+ if ( tf . Context . executing_eagerly ( ) )
404+ {
405+ var results = tf . Runner . TFE_FastPathExecute ( tf . Context , tf . Context . DeviceName ,
406+ "MapDataset" , name ,
407+ null ,
408+ dataset , new Tensor [ 0 ] ,
409+ "f" , "MapDataset" ,
410+ "output_types" , output_types ,
411+ "output_shapes" , output_shapes ,
412+ "use_inter_op_parallelism" , use_inter_op_parallelism ,
413+ "preserve_cardinality" , preserve_cardinality ) ;
414+ return results [ 0 ] ;
415+ }
416+
417+ throw new NotImplementedException ( "" ) ;
418+ }
419+
357420 /// <summary>
358421 /// A container for an iterator resource.
359422 /// </summary>
0 commit comments