Hindi
भाषाएँ
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



PyTorchDiscriminator.gradient_penalty

PyTorchDiscriminator.gradient_penalty(x, lambda_=5.0, k=0.01, c=1.0)[स्रोत]

Compute gradient penalty for discriminator optimization

मापदण्ड
  • x (numpy.ndarray) -- Generated data sample.

  • lambda (float) -- Gradient penalty coefficient 1.

  • k (float) -- Gradient penalty coefficient 2.

  • c (float) -- Gradient penalty coefficient 3.

प्रदत्त

Gradient penalty.

प्रदत्त प्रकार

torch.Tensor