# torch 2.15.0 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

        Run a benchmark on the module.

        Args:
            num_warmup_iters (int): Warmup iters are used to make sure we run a module
                a few times before actually measuring things. This way we avoid cold
                caches and any other similar problems. This is the number of warmup
                iterations for each of the threads separately

            num_iters (int): Number of iterations the benchmark should run with.
                This number is separate from the warmup iterations. Also the number is
                shared across all the threads. Once the num_iters iterations across all
                the threads is reached, we will stop execution. Though total number of
                iterations might be slightly larger. Which is reported as
                stats.num_iters where stats is the result of this function

            profiler_output_path (str): Location to save Autograd Profiler trace.
                If not empty, Autograd Profiler will be enabled for the main benchmark
                execution (but not the warmup phase). The full trace will be saved
                into the file path provided by this argument


        This function returns BenchmarkExecutionStats object which is defined via pybind11.
        It currently has two fields:
            - num_iters - number of actual iterations the benchmark have made
            - avg_latency_ms - average time it took to infer on one input example in milliseconds
        
=== parse google
short_description: 'Run a benchmark on the module.'
long_description: |
  This function returns BenchmarkExecutionStats object which is defined via pybind11.
  It currently has two fields:
      - num_iters - number of actual iterations the benchmark have made
      - avg_latency_ms - average time it took to infer on one input example in milliseconds
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: |
    Warmup iters are used to make sure we run a module
    a few times before actually measuring things. This way we avoid cold
    caches and any other similar problems. This is the number of warmup
    iterations for each of the threads separately
  kind: param
  key: 'param'
  arg_name: 'num_warmup_iters'
  type_name: 'int'
  is_optional: False
- DocstringParam
  description: |
    Number of iterations the benchmark should run with.
    This number is separate from the warmup iterations. Also the number is
    shared across all the threads. Once the num_iters iterations across all
    the threads is reached, we will stop execution. Though total number of
    iterations might be slightly larger. Which is reported as
    stats.num_iters where stats is the result of this function
  kind: param
  key: 'param'
  arg_name: 'num_iters'
  type_name: 'int'
  is_optional: False
- DocstringParam
  description: |
    Location to save Autograd Profiler trace.
    If not empty, Autograd Profiler will be enabled for the main benchmark
    execution (but not the warmup phase). The full trace will be saved
    into the file path provided by this argument
  kind: param
  key: 'param'
  arg_name: 'profiler_output_path'
  type_name: 'str'
  is_optional: False
=== detect
google
=== compose google
Run a benchmark on the module.

This function returns BenchmarkExecutionStats object which is defined via pybind11.
It currently has two fields:
    - num_iters - number of actual iterations the benchmark have made
    - avg_latency_ms - average time it took to infer on one input example in milliseconds

Args:
    num_warmup_iters (int): Warmup iters are used to make sure we run a module
        a few times before actually measuring things. This way we avoid cold
        caches and any other similar problems. This is the number of warmup
        iterations for each of the threads separately
    num_iters (int): Number of iterations the benchmark should run with.
        This number is separate from the warmup iterations. Also the number is
        shared across all the threads. Once the num_iters iterations across all
        the threads is reached, we will stop execution. Though total number of
        iterations might be slightly larger. Which is reported as
        stats.num_iters where stats is the result of this function
    profiler_output_path (str): Location to save Autograd Profiler trace.
        If not empty, Autograd Profiler will be enabled for the main benchmark
        execution (but not the warmup phase). The full trace will be saved
        into the file path provided by this argument
