Skip to content
RED SAGSkills
easy5 pts · first answer countspytorchregularization

Dropout after eval()

What does this PyTorch code print?

import torch
drop = torch.nn.Dropout(p=0.5)
drop.eval()
x = torch.ones(4)
print(drop(x))
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions