Inconsistency in Tensor.backward

Similar to this question: