Thanks so this would pull off only those which has got attr weights or bias ?
so We dont need to explicitly check using hasttr(m,‘weight’)?

secondly i had got one more q with regard to the weights ,what is diff between m.weights and m.weights.data ?