Skip to content

Silv3S/pytorch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

XPU Setup

One time setup

python -m venv xpu_torch
source xpu_torch/bin/activate
pip install numpy

git clone https://github.com/Silv3S/torch-xpu-ops
git clone https://github.com/Silv3S/pytorch
cd pytorch
git submodule sync
git submodule update --init --recursive

Everytime

source xpu_torch/bin/activate
source /opt/intel/oneapi/setvars.sh
pip install --no-build-isolation -v ~/pytorch

Test

import torch
torch.xpu.is_available()
torch.tensor([1,2,3], device="xpu")

About

Tensors and Dynamic neural networks in Python with strong GPU acceleration

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 59.2%
  • C++ 32.8%
  • Cuda 2.9%
  • C 1.4%
  • Objective-C++ 1.1%
  • CMake 0.6%
  • Other 2.0%