Get normalized probabilities (or log probs) from a net's output.
(
self,
net_output: Tuple[Tensor, Optional[Dict[str, List[Optional[Tensor]]]]],
log_probs: bool,
sample: Optional[Dict[str, Tensor]] = None,
)
| 58 | raise NotImplementedError |
| 59 | |
| 60 | def get_normalized_probs( |
| 61 | self, |
| 62 | net_output: Tuple[Tensor, Optional[Dict[str, List[Optional[Tensor]]]]], |
| 63 | log_probs: bool, |
| 64 | sample: Optional[Dict[str, Tensor]] = None, |
| 65 | ): |
| 66 | """Get normalized probabilities (or log probs) from a net's output.""" |
| 67 | return self.get_normalized_probs_scriptable(net_output, log_probs, sample) |
| 68 | |
| 69 | # TorchScript doesn't support super() method so that the scriptable Subclass |
| 70 | # can't access the base class model in Torchscript. |
nothing calls this directly
no test coverage detected