docstr: See `OutputLayerBase.get_pred()`.
docstr_tok: ["See","`","OutputLayerBase.get_pred","(",")","`","."]
code: def get_pred(self, logit, *args, **kwargs):
      """See `OutputLayerBase.get_pred()`."""
      preds = torch.max(logit, -1)[1]
      scores = F.logsigmoid(logit)
      return preds, scores
  
imports: from typing import Dict, List, Optional, Union
  import torch
  import torch.nn.functional
  from caffe2.python import core
  from pytext.common import Padding
  from pytext.config.component import create_loss
  from pytext.data.utils import Vocabulary
  from pytext.fields import FieldMeta
  from pytext.loss import AUCPRHingeLoss, BinaryCrossEntropyLoss, BinaryCrossEntropyWithLogitsLoss, CrossEntropyLoss, HingeLoss, KLDivergenceBCELoss, KLDivergenceCELoss, LabelSmoothedCrossEntropyLoss, MultiLabelSoftMarginLoss
  from pytext.utils.label import get_custom_or_automatic_label_weights
  from pytext.utils.typing import WeightingMethod
  from torch import jit
  from .output_layer_base import OutputLayerBase
  from .utils import OutputLayerUtils
label_desc: Use image node_id 1 for calling the BinaryClassificationOutputLayer obj's underlying member method code with example usage: obj.get_pred(logit) and returns: preds,  scores