Thank you! I set the seed and it works! But the old question still confuses me, why filter1 and filter2 appear in model.parameters() when I remove cuda()? (I printed out parameters in the code above).