Bengali
ভাষাসমূহ
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.

প্যারামিটার
  • 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