Creates a criterion that measures the loss given input tensors
Tensor label
Arguments
- margin
(float, optional): Should be a number from
to , to is suggested. Ifmarginis missing, the default value is .- reduction
(string, optional): Specifies the reduction to apply to the output:
'none'|'mean'|'sum'.'none': no reduction will be applied,'mean': the sum of the output will be divided by the number of elements in the output,'sum': the output will be summed.