y and z aren’t leaf nodes because their computation depends on x so their gradients aren’t saved.
If you want to see their gradients I think you can register a backward() hook: http://pytorch.org/docs/master/autograd.html#torch.autograd.Variable.register_hook 6