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

        Determines where observers need to be inserted for the Dynamic vs Static detector.
        For this detector, we want to place observers on either side of linear layers in the model.

        Currently inserts observers for:
            linear layers

        Args:
            prepared_fx_model (GraphModule):  The prepared Fx GraphModule

        Returns a Dict mapping from unique observer fqns (where we want to insert them) to a Dict with:
            key "target_node" -> the node we are trying to observe with this observer (torch.fx.node.Node)
            key "observer_to_insert" -> the observer we wish to insert (ObserverBase)
            key "is_post_observer" -> True if this is meant to be a post-observer for target_node, False if pre-observer
            key "observer_args" -> The arguments that are meant to be passed into the observer
        
=== parse google
short_description: |
  Determines where observers need to be inserted for the Dynamic vs Static detector.
  For this detector, we want to place observers on either side of linear layers in the model.
long_description: |
  Currently inserts observers for:
      linear layers
  
  Returns a Dict mapping from unique observer fqns (where we want to insert them) to a Dict with:
      key "target_node" -> the node we are trying to observe with this observer (torch.fx.node.Node)
      key "observer_to_insert" -> the observer we wish to insert (ObserverBase)
      key "is_post_observer" -> True if this is meant to be a post-observer for target_node, False if pre-observer
      key "observer_args" -> The arguments that are meant to be passed into the observer
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: 'The prepared Fx GraphModule'
  kind: param
  key: 'param'
  arg_name: 'prepared_fx_model'
  type_name: 'GraphModule'
  is_optional: False
=== detect
google
=== compose google
Determines where observers need to be inserted for the Dynamic vs Static detector.
For this detector, we want to place observers on either side of linear layers in the model.

Currently inserts observers for:
    linear layers

Returns a Dict mapping from unique observer fqns (where we want to insert them) to a Dict with:
    key "target_node" -> the node we are trying to observe with this observer (torch.fx.node.Node)
    key "observer_to_insert" -> the observer we wish to insert (ObserverBase)
    key "is_post_observer" -> True if this is meant to be a post-observer for target_node, False if pre-observer
    key "observer_args" -> The arguments that are meant to be passed into the observer

Args:
    prepared_fx_model (GraphModule): The prepared Fx GraphModule
