# Saving torch models

**URL:** <https://discuss.pytorch.org/t/saving-torch-models/838>\
**Category:** Uncategorized\
**Created:** [March 2, 2017, 3:10pm UTC](https://discuss.pytorch.org/t/saving-torch-models/838 "2017-03-02T15:10:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Veril](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@Veril](https://discuss.pytorch.org/u/Veril)\
**Post date:** [March 4, 2017, 3:18pm UTC](https://discuss.pytorch.org/t/saving-torch-models/838/4 "2017-03-04T15:18:58Z")

</div>

```
net = Net(...).cuda()
torch.save(net.state_dict(), './net.pth')
net.load_state_dict(torch.load('./net.pth'))
```

---

_[View the full topic](https://discuss.pytorch.org/t/saving-torch-models/838)._
