diff options
author | CoprDistGit <infra@openeuler.org> | 2024-01-28 06:31:54 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-01-28 06:31:54 +0000 |
commit | 45d1114833e0591276683ceac9d452e454e00cd8 (patch) | |
tree | 76eca3d0ef7f78df8619d0e0897ebbec6fb1fd45 | |
parent | ad1a537fdf5d0cd6ed14678c8a99b3ab6d6b71c2 (diff) |
automatic import of python-torchvisionopeneuler22.03_LTS_SP2
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-torchvision.spec | 51 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 53 insertions, 0 deletions
@@ -0,0 +1 @@ +/python-torchvision-0.16.2.tar.gz diff --git a/python-torchvision.spec b/python-torchvision.spec new file mode 100644 index 0000000..3da79e7 --- /dev/null +++ b/python-torchvision.spec @@ -0,0 +1,51 @@ +%global _empty_manifest_terminate_build 0 +Name: python-torchvision +Version: 0.16.2 +Release: 1 +Summary: torchvision package for python3 +License: BSD 3-Clause +URL: https://pytorch.org/vision/stable/index.html +Source0: https://github.com/pytorch/vision/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +Requires: python3 >= 3.8 +Requires: python3-pytorch == 2.1 + +%description +PyTorchVision is a computer vision library based on PyTorch. This package provides tools and pre-trained models for various computer vision tasks. + +%package -n python3-torchvision +Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration +Provides: python-torchvision +BuildRequires: python3-devel +BuildRequires: python3-setuptools +#BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-wheel + +%description -n python3-torchvision +The torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision. + +%package help +Summary: Development documents and examples for torch +Provides: python3-torchvision-doc +%description help +torchvision help docs + +%prep +%autosetup -p1 -n vision-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-torchvision +%doc *.md +%license LICENSE +%{python3_sitearch}/torchvision/* +%{python3_sitearch}/torchvision-%{version}-py%{python3_version}.egg-info/* + +%changelog +* Fri Jan 26 2024 menma <1316818279@qq.com> - 0.16.2-1 +- Package init @@ -0,0 +1 @@ +a0e7f9cc2aa638576fd8088813377294 python-torchvision-0.16.2.tar.gz |