Russian
Языки
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



PyTorchDiscriminator.get_label

PyTorchDiscriminator.get_label(x, detach=False)[исходный код]

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

Параметры
  • x (Union(numpy.ndarray, torch.Tensor)) – Discriminator input, i.e. data sample.

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

Результат

Discriminator output, i.e. data label

Тип результата

torch.Tensor