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

        This method can be subclassed to perform any override/modification of the choices.
        The incoming parameters are cheap (generators), so you can do any overrides without
        incurring too much cost. Override this method to customize the kernel template choices
        before they are converted to ChoiceCaller objects, which is expensive on template codegen.

        The full list of arguments are here to facilitate any overrides you may want to do,
        as they can be used to start from scratch for each template if so desired.

        Args:
            template_choices: Dictionary mapping template UIDs to generators of KernelTemplateChoice objects
            kernel_inputs: MMKernelInputs containing input tensor nodes and matrix indices
            templates: List of template objects (KernelTemplate or ExternKernelChoice) in use
            op_name: Operation name (e.g., "bmm", "baddbmm", "addmm")
            kwarg_overrides: Optional dict of kwargs to override for each template heuristic

        Returns:
            Flattened list of KernelTemplateChoice objects across all templates
        
=== parse google
short_description: |
  This method can be subclassed to perform any override/modification of the choices.
  The incoming parameters are cheap (generators), so you can do any overrides without
  incurring too much cost. Override this method to customize the kernel template choices
  before they are converted to ChoiceCaller objects, which is expensive on template codegen.
long_description: |
  The full list of arguments are here to facilitate any overrides you may want to do,
  as they can be used to start from scratch for each template if so desired.
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: 'Dictionary mapping template UIDs to generators of KernelTemplateChoice objects'
  kind: param
  key: 'param'
  arg_name: 'template_choices'
  is_optional: False
- DocstringParam
  description: 'MMKernelInputs containing input tensor nodes and matrix indices'
  kind: param
  key: 'param'
  arg_name: 'kernel_inputs'
  is_optional: False
- DocstringParam
  description: 'List of template objects (KernelTemplate or ExternKernelChoice) in use'
  kind: param
  key: 'param'
  arg_name: 'templates'
  is_optional: False
- DocstringParam
  description: 'Operation name (e.g., "bmm", "baddbmm", "addmm")'
  kind: param
  key: 'param'
  arg_name: 'op_name'
  is_optional: False
- DocstringParam
  description: 'Optional dict of kwargs to override for each template heuristic'
  kind: param
  key: 'param'
  arg_name: 'kwarg_overrides'
  is_optional: False
- DocstringReturns
  description: 'Flattened list of KernelTemplateChoice objects across all templates'
  kind: returns
  key: 'returns'
  is_generator: False
=== detect
google
=== compose google
This method can be subclassed to perform any override/modification of the choices.
The incoming parameters are cheap (generators), so you can do any overrides without
incurring too much cost. Override this method to customize the kernel template choices
before they are converted to ChoiceCaller objects, which is expensive on template codegen.

The full list of arguments are here to facilitate any overrides you may want to do,
as they can be used to start from scratch for each template if so desired.

Args:
    template_choices: Dictionary mapping template UIDs to generators of KernelTemplateChoice objects
    kernel_inputs: MMKernelInputs containing input tensor nodes and matrix indices
    templates: List of template objects (KernelTemplate or ExternKernelChoice) in use
    op_name: Operation name (e.g., "bmm", "baddbmm", "addmm")
    kwarg_overrides: Optional dict of kwargs to override for each template heuristic

Returns:
    Flattened list of KernelTemplateChoice objects across all templates
