class_docstr: A projective dependency CRF.
  
  Parameters:
      arc_scores_in: Arc scores of shape (B, N, N) or (B, N, N, L) with root scores on
      diagonal.
  
  Note: For single-root case, do not set cache=True for now.
class_docstr_tok: ["A","projective","dependency","CRF",".","Parameters",":","arc_scores_in",":","Arc","scores","of","shape","(","B",",","N",",","N",")","or","(","B",",","N",",","N",",","L",")","with","root","scores","on","diagonal",".","Note",":","For","single-root","case",",","do","not","set","cache=True","for","now","."]
code: def _arrange_marginals(self, grads):
      return self.semiring.convert(
          unconvert(self.semiring.unconvert(grads[0]))
      )
  
file_path: pytorch-struct/torch_struct/deptree.py
imports: import torch
  from .helpers import _Struct, Chart
label_desc: Use image node_id 3 for calling the DepTree obj's underlying member method code with example usage: obj._arrange_marginals(grads) and returns: self