torch.nn.functional.poisson_nll_loss
torch.nn.functional.poisson_nll_loss(input, target, log_input=True, full=False, size_average=None, eps=1e-08, reduce=None, reduction='mean')
Poisson negative log likelihood loss.
See "PoissonNLLLoss" for details.
Parameters:
      * input (Tensor) -- expectation of underlying Poisson
        distribution.
  * **target** (*Tensor*) -- random sample target \sim
    \text{Poisson}(input).

  * **log_input** (*bool*) -- if "True" the loss is computed as
    \exp(\text{input}) - \text{target} * \text{input}, if "False"
    then loss is \text{input} - \text{target} *
    \log(\text{input}+\text{eps}). Default: "True"

  * **full** (*bool*) -- whether to compute full loss, i. e. to
    add the Stirling approximation term. Default: "False"
    \text{target} * \log(\text{target}) - \text{target} + 0.5 *
    \log(2 * \pi * \text{target}).
