diff options
author | CoprDistGit <infra@openeuler.org> | 2024-01-29 04:58:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-01-29 04:58:13 +0000 |
commit | afc2ff5c49773b59afbd7f3fcde567aa9aa5f395 (patch) | |
tree | 37769b3e244894c7b2d9429d3261f4bcde9b7f3a | |
parent | d6d656f12498311cc3c0ede24e4ed003d932607a (diff) |
automatic import of python-captumopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-captum.spec | 63 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 65 insertions, 0 deletions
@@ -0,0 +1 @@ +/python-captum-0.7.0.tar.gz diff --git a/python-captum.spec b/python-captum.spec new file mode 100644 index 0000000..1e1e421 --- /dev/null +++ b/python-captum.spec @@ -0,0 +1,63 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name captum +%global source_name captum + +Name: python-%{pypi_name} +Version: 0.7.0 +Release: 1%{?dist} +Summary: captum package for Python3 +License: MIT +URL: https://github.com/pytorch/captum +Source0: https://github.com/pytorch/captum/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +Requires: python3-matplotlib +Requires: python3-numpy +Requires: python3-pytorch >= 1.6 +Requires: python3-pyro-ppl >= 1.8.4 +Requires: python3-gpytorch >= 1.11 +Requires: python3-linear_operator == 0.5.1 + +%description +Captum is a model interpretability and understanding library for PyTorch. Captum means comprehension in Latin and contains general purpose implementations of integrated gradients, saliency maps, smoothgrad, vargrad and others for PyTorch models. It has quick integration for models built with domain-specific libraries such as torchvision, torchtext, and others. + +Captum is currently in beta and under active development! + +%package -n python3-%{pypi_name} +Summary: Botorch package for Python3 +Provides: python-%{pypi_name} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-pytorch >= 1.6 +BuildRequires: python3-hatchling + +%description -n python3-%{pypi_name} + +%package help +Summary: Development documents and examples for captum +Provides: python3-%{pypi_name}-doc +%description help +documents of captum package for python3 + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%doc *.md +%license LICENSE +%{python3_sitelib}/* +%{_datadir}/jupyter/* +%{_usr}/etc/jupyter/* + + +%changelog +* Mon Jan 22 2024 menma <1316818279@qq.com> - 0.9.5-1 +- Package init @@ -0,0 +1 @@ +3981bc56ecf5a66c8a62658428bb0fad python-captum-0.7.0.tar.gz |