Thank you.
Just to be clear, this output means that PyTorch does not know how to compute gradients for the Squeeze module, right? Because x.grad remained at its initial all-ones state? Or am I reading this wrong?
Also, what would be a good resource for getting a fairly complete picture of PyTorch autograd? The current picture I have in my head is a mish-mash of graph, leaves, detach, … which is hit-or-miss when it comes to slightly non-trivial scenarios.