Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
1275 Discussions

Error while using Intel extension for pytorch

Tanmaya191
Beginner
422 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
401 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
402 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
391 Views

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

AbhijeetJ_Intel
Moderator
383 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



Reply