Fill tensor in-place along a specified dimension with increasing integers.
tensor – The tensor to be modified in-place.
dim – The dimension along which to fill with increasing values.