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))
Discussion 0
Join free to post in the discussion.
Related questions
- When early stopping triggersMachine Learning Engineer
- Different results every inference runMachine Learning Engineer
- Gradient of a sum of squaresMachine Learning Engineer
- Training loop without zero_gradMachine Learning Engineer
- Softmax before CrossEntropyLossMachine Learning Engineer
- Shape after a batched matmulMachine Learning Engineer
- view() after a transposeMachine Learning Engineer