# How to check if Model is on cuda

**URL:** <https://discuss.pytorch.org/t/how-to-check-if-model-is-on-cuda/180>\
**Category:** Uncategorized\
**Created:** [January 25, 2017, 2:29am UTC](https://discuss.pytorch.org/t/how-to-check-if-model-is-on-cuda/180 "2017-01-25T02:29:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mikolchon](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/mikolchon/32/2419_2.png) [@mikolchon](https://discuss.pytorch.org/u/mikolchon)\
**Post date:** [May 8, 2018, 12:19pm UTC](https://discuss.pytorch.org/t/how-to-check-if-model-is-on-cuda/180/6 "2018-05-08T12:19:34Z")

</div>

Yes, it will work because it is verifying the type of the model weights, but I was wondering if there’s a new attribute similar to `model.device` as is the case for the new tensors in `0.4`.

---

_[View the full topic](https://discuss.pytorch.org/t/how-to-check-if-model-is-on-cuda/180)._
