easyStudy question · answer published in Machine Learning interview questions, so no pointspytorchregularization
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))
Discussion 0
Join free to post in the discussion.
Related questions
- When early stopping triggersMachine Learning Engineer
- Parameters in nn.Linear(10, 5)Machine Learning Engineer
- Telling autograd to track a tensorMachine Learning Engineer
- Why wrap inference in no_gradMachine Learning Engineer
- Logging loss without leaking memoryMachine Learning Engineer
- Feeding a single image to a CNNMachine Learning Engineer
- Tensors on different devicesMachine Learning Engineer
- model(x) versus model.forward(x)Machine Learning Engineer