The pad argument needs to be a tuple whose size is divisible by 2. Also, note that it operates on dimensions of the input tensor in a backward fashion (from last dimension to the first dimension). For example, if you pass pad=(1, 1) it will pad the last dimension by 1 on each side, so that will result in size [71, 32, 3].
So, since you have [71, 32, 1] and you want to pad this tensor by 29 on the first dimension, then you should use pad=(0, 0, 0, 0, 14, 15):