We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
← All tracks
0 / 4
Performance
PyTorchEverything before this, applied and measured. Fusing an elementwise chain, deleting a Python loop, preallocating, and not calling `.item()` in one. Benchmarked, so the improvement is a number rather than a claim.
0
/ 7 solved
- 1. Not solved yet. Two hundred kernels, or one
- 2. Not solved yet. Four allocations, or one
- 3. Not solved yet. Rebuilt every step
- 4. Not solved yet. One kernel for every head
- 5. Not solved yet. Sort once
- 6. Not solved yet. Time it properly
- 7. Not solved yet. Everything at once
Check yourself
4 questions · one attempt eachThese do not count toward finishing the track. They are here to catch the things that are easy to read past.
What does torch.no_grad() change about a forward pass?
lin(torch.ones(1, 2)).requires_grad
with torch.no_grad():
lin(torch.ones(1, 2)).requires_grad
Question 1 of 4