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

    On-demand oneDNN (former MKL-DNN) verbosing functionality.

    To make it easier to debug performance issues, oneDNN can dump verbose
    messages containing information like kernel size, input data size and
    execution duration while executing the kernel. The verbosing functionality
    can be invoked via an environment variable named `DNNL_VERBOSE`. However,
    this methodology dumps messages in all steps. Those are a large amount of
    verbose messages. Moreover, for investigating the performance issues,
    generally taking verbose messages for one single iteration is enough.
    This on-demand verbosing functionality makes it possible to control scope
    for verbose message dumping. In the following example, verbose messages
    will be dumped out for the second inference only.

    .. highlight:: python
    .. code-block:: python

        import torch

        model(data)
        with torch.backends.mkldnn.verbose(torch.backends.mkldnn.VERBOSE_ON):
            model(data)

    Args:
        level: Verbose level
            - ``VERBOSE_OFF``: Disable verbosing
            - ``VERBOSE_ON``:  Enable verbosing
            - ``VERBOSE_ON_CREATION``: Enable verbosing, including oneDNN kernel creation
    
=== parse google
short_description: 'On-demand oneDNN (former MKL-DNN) verbosing functionality.'
long_description: |
  To make it easier to debug performance issues, oneDNN can dump verbose
  messages containing information like kernel size, input data size and
  execution duration while executing the kernel. The verbosing functionality
  can be invoked via an environment variable named `DNNL_VERBOSE`. However,
  this methodology dumps messages in all steps. Those are a large amount of
  verbose messages. Moreover, for investigating the performance issues,
  generally taking verbose messages for one single iteration is enough.
  This on-demand verbosing functionality makes it possible to control scope
  for verbose message dumping. In the following example, verbose messages
  will be dumped out for the second inference only.
  
  .. highlight:: python
  .. code-block:: python
  
      import torch
  
      model(data)
      with torch.backends.mkldnn.verbose(torch.backends.mkldnn.VERBOSE_ON):
          model(data)
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: |
    Verbose level
    - ``VERBOSE_OFF``: Disable verbosing
    - ``VERBOSE_ON``:  Enable verbosing
    - ``VERBOSE_ON_CREATION``: Enable verbosing, including oneDNN kernel creation
  kind: param
  key: 'param'
  arg_name: 'level'
  is_optional: False
=== detect
google
=== compose google
On-demand oneDNN (former MKL-DNN) verbosing functionality.

To make it easier to debug performance issues, oneDNN can dump verbose
messages containing information like kernel size, input data size and
execution duration while executing the kernel. The verbosing functionality
can be invoked via an environment variable named `DNNL_VERBOSE`. However,
this methodology dumps messages in all steps. Those are a large amount of
verbose messages. Moreover, for investigating the performance issues,
generally taking verbose messages for one single iteration is enough.
This on-demand verbosing functionality makes it possible to control scope
for verbose message dumping. In the following example, verbose messages
will be dumped out for the second inference only.

.. highlight:: python
.. code-block:: python

    import torch

    model(data)
    with torch.backends.mkldnn.verbose(torch.backends.mkldnn.VERBOSE_ON):
        model(data)

Args:
    level: Verbose level
        - ``VERBOSE_OFF``: Disable verbosing
        - ``VERBOSE_ON``:  Enable verbosing
        - ``VERBOSE_ON_CREATION``: Enable verbosing, including oneDNN kernel creation
