Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1661 Discussions

Error while using Intel extension for pytorch

Tanmaya191
Beginner
1,719 Views

Hi Team, 

I was working with intel extension for pytorch for deep learning purpose. I installed pytorch packages and intel_pytorch_extension. However, Now I am unable to import intel_pytorch_extension library as it's showing some error. probably I had run some wrong commands while installing pytorch. Can you please tell me what to do with it.Screenshot (16).png

0 Kudos
1 Solution
AbhijeetJ_Intel
Moderator
1,698 Views

Hi,

 

Thank you for posting in Intel Communities.

 

From the screenshot we can see you are using PyTorch (AI kit) kernel in DevCloud Jupyter.

 

Use the following command to import Intel extension for PyTorch:

 

import intel_extension_for_pytorch as ipex

 

This works fine for us.

Please find the screenshot below.

AbhijeetJ_Intel_0-1644309757485.png

 

Note: All the packages are pre-installed in the AI kit. No need to again install them.

 

Regards

Abhijeet

 

View solution in original post

3 Replies
AbhijeetJ_Intel
Moderator
1,699 Views

Hi,

 

Thank you for posting in Intel Communities.

 

From the screenshot we can see you are using PyTorch (AI kit) kernel in DevCloud Jupyter.

 

Use the following command to import Intel extension for PyTorch:

 

import intel_extension_for_pytorch as ipex

 

This works fine for us.

Please find the screenshot below.

AbhijeetJ_Intel_0-1644309757485.png

 

Note: All the packages are pre-installed in the AI kit. No need to again install them.

 

Regards

Abhijeet

 

Tanmaya191
Beginner
1,688 Views

Thanks a lot. I installed the packages again, that's why I was getting the error.

0 Kudos
AbhijeetJ_Intel
Moderator
1,680 Views

Hi,

 

Thanks for accepting our solution.

If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.

 

Regards

Abhijeet



0 Kudos
Reply