oneapi-src / oneAPI-samples

Samples for Intel® oneAPI Toolkits
https://oneapi-src.github.io/oneAPI-samples/
MIT License
934 stars 685 forks source link

Intel Extension for PyTorch breaks with PyTorch 2.3.* #2330

Open AlekhyaVemuri opened 4 months ago

AlekhyaVemuri commented 4 months ago

Summary

While working with Intel Extension for PyTorch Getting Started Sample, I encountered an error that the latest version of PyTorch i.e. 2.3.0 is not compatible with IPEX. Intel Extension for PyTorch Getting Started Sample, I encountered an error that the latest version of PyTorch i.e. 2.3.0 is not compatible with IPEX.

A possible workaround is to downgrade but the latest version should be supported as well.

Version

Intel-extension-for-pytorch 2.2.0

Environment

Ubuntu

Steps to reproduce

python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
python -m pip install intel-extension-for-pytorch

Error Screenshot

image