Second order differentiation doesn't work for "x + 1"

Could have a look at torch.func library, that should give zeros instead (I think)