# Torch.embedding fails with RuntimeError: Placeholder storage has not been allocated on MPS device!

**URL:** <https://discuss.pytorch.org/t/torch-embedding-fails-with-runtimeerror-placeholder-storage-has-not-been-allocated-on-mps-device/152124>\
**Category:** mps\
**Created:** [May 19, 2022, 4:08pm UTC](https://discuss.pytorch.org/t/torch-embedding-fails-with-runtimeerror-placeholder-storage-has-not-been-allocated-on-mps-device/152124 "2022-05-19T16:08:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![albanD](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/alband/32/215_2.png) [@albanD](https://discuss.pytorch.org/u/albanD)\
**Post date:** [May 19, 2022, 9:15pm UTC](https://discuss.pytorch.org/t/torch-embedding-fails-with-runtimeerror-placeholder-storage-has-not-been-allocated-on-mps-device/152124/2 "2022-05-19T21:15:11Z")

</div>

Hi,

Did you make sure that you moved both your `model` and your `input` to the “mps” device?

---

_[View the full topic](https://discuss.pytorch.org/t/torch-embedding-fails-with-runtimeerror-placeholder-storage-has-not-been-allocated-on-mps-device/152124)._
