# How to implement two similar network models with untied parameters?

**URL:** <https://discuss.pytorch.org/t/how-to-implement-two-similar-network-models-with-untied-parameters/53891>\
**Category:** Uncategorized\
**Created:** [August 21, 2019, 5:25am UTC](https://discuss.pytorch.org/t/how-to-implement-two-similar-network-models-with-untied-parameters/53891 "2019-08-21T05:25:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![okreshma](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/o/ecae2f/32.png) [@okreshma](https://discuss.pytorch.org/u/okreshma)\
**Post date:** [August 21, 2019, 1:19pm UTC](https://discuss.pytorch.org/t/how-to-implement-two-similar-network-models-with-untied-parameters/53891/5 "2019-08-21T13:19:21Z")

</div>

I tried comparing the parameters of the two models with the function described in the following post.

[check if models have same weights](https://discuss.pytorch.org/t/check-if-models-have-same-weights/4351/6)

And I got the result as “mismatch”. The comparison of the parameters was done after inference and before training. Is this the proper method to check if the parameters are tied or not? Kindly suggest the correct approach for the same.

---

_[View the full topic](https://discuss.pytorch.org/t/how-to-implement-two-similar-network-models-with-untied-parameters/53891)._
