Thank you so much @ptrblck for point out the error in the code. Along with your suggestion, I also change the index number in the left hand side to make it work, plus change the line to
m1.weight.data[f][count*36:(count+1)*36] = m0.weight.data[f][filter_index*36:(filter_index+1)*36].clone()

I have one more question, as far as the structure of the weight matrix is considered, will it copy the actual weight what I am targeting (weights of remaining filters between last conv and dense layer)?