class_docstr: Two linear layers for predicting Fast R-CNN outputs:
  
  1. proposal-to-detection box regression deltas
  2. classification scores
class_docstr_tok: ["Two","linear","layers","for","predicting","Fast","R-CNN","outputs",":","1.","proposal-to-detection","box","regression","deltas","2.","classification","scores"]
docstr: Args:
      predictions: return values of :meth:`forward()`.
      proposals (list[Instances]): proposals that match the features that were
          used to compute predictions.
  
  Returns:
      list[Tensor]:
          A list of Tensors of predicted class probabilities for each image.
          Element i has shape (Ri, K + 1), where Ri is the number of proposals for image i.
docstr_tok: ["Args",":","predictions",":","return","values","of",":","meth",":","`","forward","(",")","`",".","proposals","(","list","[","Instances","]",")",":","proposals","that","match","the","features","that","were","used","to","compute","predictions",".","Returns",":","list","[","Tensor","]",":","A","list","of","Tensors","of","predicted","class","probabilities","for","each","image",".","Element","i","has","shape","(","Ri",",","K","+","1",")",",","where","Ri","is","the","number","of","proposals","for","image","i","."]
code: def predict_probs(
      self,
      predictions: Tuple[torch.Tensor, torch.Tensor],
      proposals: List[Instances],
  ):
      """
      Args:
          predictions: return values of :meth:`forward()`.
          proposals (list[Instances]): proposals that match the features that were
              used to compute predictions.
  
      Returns:
          list[Tensor]:
              A list of Tensors of predicted class probabilities for each image.
              Element i has shape (Ri, K + 1), where Ri is the number of proposals for image i.
      """
      scores, _ = predictions
      num_inst_per_image = [len(p) for p in proposals]
      if self.use_sigmoid_ce:
          probs = scores.sigmoid()
      else:
          probs = F.softmax(scores, dim=-1)
      return probs.split(num_inst_per_image, dim=0)
  
imports: import logging
  from typing import Callable, Dict, List, Optional, Tuple, Union
  import torch
  from torch import nn
  from torch.nn import functional
  from detectron2.config import configurable
  from detectron2.data.detection_utils import get_fed_loss_cls_weights
  from detectron2.layers import ShapeSpec, batched_nms, cat, cross_entropy, nonzero_tuple
  from detectron2.modeling.box_regression import Box2BoxTransform, _dense_box_regression_loss
  from detectron2.structures import Boxes, Instances
  from detectron2.utils.events import get_event_storage
label_desc: Use image node_id 11 for calling the FastRCNNOutputLayers obj's underlying member method code with example usage: obj.predict_probs(predictions, proposals) and returns: probs