blob: 82cda30e84c46ef328686f06a9177268db7781d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
%global _empty_manifest_terminate_build 0
Name: python-torchrl
Version: 0.2.1
Release: 1
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
License: MIT
URL: https://pypi.org/project/torchrl/
Source0: https://github.com/pytorch/rl/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Requires: python3-pytorch
Requires: python3-pytorch_package_dep
Requires: python3-numpy
Requires: python3-packaging
Requires: python3-cloudpickle
Requires: python3-tensordict_dep
%description
PyTorch is a Python package that provides two high-level features:
- Tensor computation (like NumPy) with strong GPU acceleration
- Deep neural networks built on a tape-based autograd system
You can reuse your favorite Python packages such as NumPy, SciPy and Cython to extend PyTorch when needed.
%package -n python3-torchrl
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Provides: python-torchrl
BuildRequires: python3-pip
#BuildRequires: python3-setuptools_scm
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: python3-ninja
#BuildRequires: python3-hatchling
%description -n python3-torchrl
%package help
Summary: Development documents and examples for python-torchrl
Provides: python3-torchrl-doc
%description help
%prep
%autosetup -p1 -n rl-%{version}
%build
export MAX_JOBS=8
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
%files -n python3-torchrl
%doc *.md
%license LICENSE
%{python3_sitearch}/torchrl/*
%{python3_sitearch}/torchrl-%{version}.dist-info/*
%{python3_sitearch}/build_tools/*
%changelog
* Fri Jan 26 2024 menma <1316818279@qq.com> - 0.2.1-1
- Package init
|