# Resetting Dataparallel after initialization, and using it in a dictionary

**URL:** <https://discuss.pytorch.org/t/resetting-dataparallel-after-initialization-and-using-it-in-a-dictionary/62660>\
**Category:** Uncategorized\
**Created:** [December 1, 2019, 3:26pm UTC](https://discuss.pytorch.org/t/resetting-dataparallel-after-initialization-and-using-it-in-a-dictionary/62660 "2019-12-01T15:26:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pytorcher](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/p/7ea924/32.png) [@pytorcher](https://discuss.pytorch.org/u/pytorcher)\
**Post date:** [December 1, 2019, 3:26pm UTC](https://discuss.pytorch.org/t/resetting-dataparallel-after-initialization-and-using-it-in-a-dictionary/62660/1 "2019-12-01T15:26:48Z")

</div>

Two questions, first is that I have a network that I would like to train for a little while using dataparallel and then modify the network and continue to train with dataparallel. What is the correct way to reinitialize? Should I remove the dataparallel in some way or just call it again on net.module(which runs but doesn’t appear to work as expected)?  
Second question is continued from here: [How to transition to functions not being allowed to have member variables](https://discuss.pytorch.org/t/how-to-transition-to-functions-not-being-allowed-to-have-member-variables/62170/2). Now that I am using a dictionary it appears the tensors in that dictionary are not split across GPUs. What’s the best way to include them in the dataparallel?
