French
Langues
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



PyTorchDiscriminator.get_label

PyTorchDiscriminator.get_label(x, detach=False)[source]

Get data sample labels, i.e. true or fake.

Paramètres
  • x (Union(numpy.ndarray, torch.Tensor)) – Discriminator input, i.e. data sample.

  • detach (bool) – if None detach from torch tensor variable (optional)

Renvoie

Discriminator output, i.e. data label

Type renvoyé

torch.Tensor