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

    Common function for redistributing a distributed tensor during backward
    and twice-backward backpropagation steps.

    Args:
        grad_output: The output gradient tensor.
        previous_spec: DTensorSpec prior to redistribution.
        out_dtype: dtype to cast the returned gradient to. Pinned by autograd
                to match the dtype of the input of the node above this one.
        op_dtype: dtype to run the backward collective at.
        async_op: whether to perform the DTensor redistribute operation
                asynchronously or not. Default: False

    Returns:
        A :class:`torch.Tensor` object.
        A :class:`DTensorSpec` object.
    
=== parse google
short_description: |
  Common function for redistributing a distributed tensor during backward
  and twice-backward backpropagation steps.
blank_after_short_description: True
blank_after_long_description: False
style: google
- DocstringParam
  description: 'The output gradient tensor.'
  kind: param
  key: 'param'
  arg_name: 'grad_output'
  is_optional: False
- DocstringParam
  description: 'DTensorSpec prior to redistribution.'
  kind: param
  key: 'param'
  arg_name: 'previous_spec'
  is_optional: False
- DocstringParam
  description: |
    dtype to cast the returned gradient to. Pinned by autograd
    to match the dtype of the input of the node above this one.
  kind: param
  key: 'param'
  arg_name: 'out_dtype'
  is_optional: False
- DocstringParam
  description: 'dtype to run the backward collective at.'
  kind: param
  key: 'param'
  arg_name: 'op_dtype'
  is_optional: False
- DocstringParam
  description: |
    whether to perform the DTensor redistribute operation
    asynchronously or not. Default: False
  kind: param
  key: 'param'
  arg_name: 'async_op'
  is_optional: True
  default: 'False'
- DocstringReturns
  description: |
    A :class:`torch.Tensor` object.
    A :class:`DTensorSpec` object.
  kind: returns
  key: 'returns'
  is_generator: False
=== detect
google
=== compose google
Common function for redistributing a distributed tensor during backward
and twice-backward backpropagation steps.

Args:
    grad_output: The output gradient tensor.
    previous_spec: DTensorSpec prior to redistribution.
    out_dtype: dtype to cast the returned gradient to. Pinned by autograd
        to match the dtype of the input of the node above this one.
    op_dtype: dtype to run the backward collective at.
    async_op: whether to perform the DTensor redistribute operation
        asynchronously or not. Default: False

Returns:
    A :class:`torch.Tensor` object.
    A :class:`DTensorSpec` object.
