class_docstr: Benchmarks for `tf.data.Dataset.map()`.
class_docstr_tok: ["Benchmarks","for","`","tf.data.Dataset.map","(",")","`","."]
code: def benchmark_nested_parallel_map(self):
      cycle_lengths = [None, 100]
      nums_parallel_calls = [None, 1, 10, 100, dataset_ops.AUTOTUNE]
      for cycle_length in cycle_lengths:
          for num_parallel_calls in nums_parallel_calls:
              self._benchmark_nested_parallel_map(
                  cycle_length, num_parallel_calls
              )
  
file_path: tensorflow/tensorflow/python/data/benchmarks/map_benchmark.py
imports: import numpy
  from tensorflow.python.data.benchmarks import benchmark_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import map_op
  from tensorflow.python.framework import constant_op
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import map_fn
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import while_loop
label_desc: Use image node_id 6 for calling the MapBenchmark obj's underlying member method code with example usage: obj.benchmark_nested_parallel_map() without return types