Parameters:
      * p (int, optional) -- Has a default value of 1. 1 and
        2 are the only supported values.
  * **margin** (*float**, **optional*) -- Has a default value of
    1.

  * **weight** (*Tensor**, **optional*) -- a manual rescaling
    weight given to each class. If given, it has to be a Tensor of
    size *C*. Otherwise, it is treated as if having all ones.

  * **size_average** (*bool**, **optional*) -- Deprecated (see
    "reduction"). By default, the losses are averaged over each
    loss element in the batch. Note that for some losses, there
    are multiple elements per sample. If the field "size_average"
    is set to "False", the losses are instead summed for each
    minibatch. Ignored when "reduce" is "False". Default: "True"

  * **reduce** (*bool**, **optional*) -- Deprecated (see
    "reduction"). By default, the losses are averaged or summed
    over observations for each minibatch depending on
