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

Method map

tensorflow/python/data/ops/dataset_ops.py:1997–2004  ·  view source on GitHub ↗
(self, map_func, num_parallel_calls=None)

Source from the content-addressed store, hash-verified

1995
1996 @functools.wraps(DatasetV2.map)
1997 def map(self, map_func, num_parallel_calls=None):
1998 if num_parallel_calls is None:
1999 return DatasetV1Adapter(
2000 MapDataset(self, map_func, preserve_cardinality=False))
2001 else:
2002 return DatasetV1Adapter(
2003 ParallelMapDataset(
2004 self, map_func, num_parallel_calls, preserve_cardinality=False))
2005
2006 @deprecation.deprecated(None, "Use `tf.data.Dataset.map()")
2007 def map_with_legacy_function(self, map_func, num_parallel_calls=None):

Callers

nothing calls this directly

Calls 3

DatasetV1AdapterClass · 0.85
MapDatasetClass · 0.85
ParallelMapDatasetClass · 0.85

Tested by

no test coverage detected