|
|
|
|
|
by kukanani
250 days ago
|
|
An open source website I built to explain tensor functions in PyTorch: https://whytorch.org It makes tricky functions like torch.gather and torch.scatter more intuitive by showing element-level relationships between inputs and outputs. For any function, you can click elements in the result to see where they came from, or elements in the inputs to see how they contribute to the result to see exactly how it contributes to the result. I found that visually tracing tensor operations clarifies indexing, slicing, and broadcasting in ways reading that the docs can't. You can also jump straight to WhyTorch from the PyTorch docs pages by modifying the base URL directly. I launched a week or two back and now have the top post of all time on r/pytorch, which has been pretty fun. |
|
https://whytorch.org/torch.mul/