# Import error on using torch\_XLA

**URL:** <https://discuss.pytorch.org/t/import-error-on-using-torch-xla/87811>\
**Category:** xla\
**Created:** [July 3, 2020, 8:19am UTC](https://discuss.pytorch.org/t/import-error-on-using-torch-xla/87811 "2020-07-03T08:19:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![IamSparky](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/i/a9adbd/32.png) [@IamSparky](https://discuss.pytorch.org/u/IamSparky)\
**Post date:** [July 3, 2020, 8:19am UTC](https://discuss.pytorch.org/t/import-error-on-using-torch-xla/87811/1 "2020-07-03T08:19:23Z")

</div>

As I am working on TPU kernal,

I have executed these lines

 ![image](https://discuss.pytorch.org/uploads/default/original/3X/9/1/91cfa38021d6a0f3d2475d919c77978be98f598d.png)

and then got this error on running these imports

 ![wqwqw](https://discuss.pytorch.org/uploads/default/original/3X/d/0/d06ab817ed0f8606f99a0412bd32598a2ded33d9.jpeg)

[@admins](https://discuss.pytorch.org/groups/admins) @smth @ptrblck please help.

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [July 4, 2020, 7:35am UTC](https://discuss.pytorch.org/t/import-error-on-using-torch-xla/87811/2 "2020-07-04T07:35:57Z")

</div>

Please don’t tag certain people, as this might discourage others to answer and might also tag users, who are not experts in the topic.

That being said, I’ll move your topic to the XLA category to add visibility.

---

<div class="post-metadata">

**Author:** ![IamSparky](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/i/a9adbd/32.png) [@IamSparky](https://discuss.pytorch.org/u/IamSparky)\
**Post date:** [July 4, 2020, 7:39am UTC](https://discuss.pytorch.org/t/import-error-on-using-torch-xla/87811/3 "2020-07-04T07:39:54Z")

</div>

Thanks ptrblck … can please suggest some tips and tricks to add visibility to my topics while posting? I would very greatful as I am new to pytorch forums.

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [July 4, 2020, 7:41am UTC](https://discuss.pytorch.org/t/import-error-on-using-torch-xla/87811/4 "2020-07-04T07:41:08Z")

</div>

I’ve already moved the topic to the right category, so let’s wait until @ailzhang and other XLA expert have some time to look into the topic. As it’s weekend, you might need to wait a bit. 😉

---

<div class="post-metadata">

**Author:** ![IamSparky](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/i/a9adbd/32.png) [@IamSparky](https://discuss.pytorch.org/u/IamSparky)\
**Post date:** [July 19, 2020, 8:59am UTC](https://discuss.pytorch.org/t/import-error-on-using-torch-xla/87811/5 "2020-07-19T08:59:28Z")

</div>

@ailzhang or anyone from torch xla team if you can help please

---

<div class="post-metadata">

**Author:** ![ailzhang](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/a/f17d59/32.png) [@ailzhang](https://discuss.pytorch.org/u/ailzhang)\
**Post date:** [July 20, 2020, 4:39pm UTC](https://discuss.pytorch.org/t/import-error-on-using-torch-xla/87811/6 "2020-07-20T16:39:41Z")

</div>

Hi @IamSparky, sorry for the late reply, we take all xla/tpu related questions/feature requests/bug reports as issues in pytorch/xla repo. Would you mind posting the issue in pytorch/xla github with a link to the colab notebook? I’m pretty sure this should work but it’s hard to locate without seeing the code.
