mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: Add qnnpack-pytorch-for-r-torch.
* gnu/packages/machine-learning.scm (%python-pytorch-for-r-torch-version): New variable. (%python-pytorch-for-r-torch-src): New variable. (qnnpack-pytorch-for-r-torch): New variable.
This commit is contained in:
parent
e587d8fb69
commit
085551a40f
1 changed files with 28 additions and 0 deletions
|
@ -4764,6 +4764,34 @@ (define-public python-pytorch-avx
|
||||||
(delete 'disable-avx-dependencies)))))
|
(delete 'disable-avx-dependencies)))))
|
||||||
(supported-systems '("x86_64-linux"))))
|
(supported-systems '("x86_64-linux"))))
|
||||||
|
|
||||||
|
(define %python-pytorch-for-r-torch-version "2.0.1")
|
||||||
|
|
||||||
|
(define %python-pytorch-for-r-torch-src
|
||||||
|
(origin
|
||||||
|
(inherit %python-pytorch-src)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/pytorch/pytorch")
|
||||||
|
(commit (string-append "v" %python-pytorch-for-r-torch-version))))
|
||||||
|
(file-name (git-file-name "python-pytorch"
|
||||||
|
%python-pytorch-for-r-torch-version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0iirrn687i7sfv0p0i7dn89x3rf13a7l8y1y5h190h51yjxpxqxa"))))
|
||||||
|
|
||||||
|
(define-public qnnpack-pytorch-for-r-torch
|
||||||
|
(package
|
||||||
|
(inherit qnnpack-pytorch)
|
||||||
|
(version (string-append "pytorch-" %python-pytorch-for-r-torch-version))
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(inherit %python-pytorch-for-r-torch-src)
|
||||||
|
(patches '())
|
||||||
|
(modules '((guix build utils)
|
||||||
|
(srfi srfi-26)
|
||||||
|
(ice-9 ftw)))
|
||||||
|
(snippet
|
||||||
|
(origin-snippet (package-source qnnpack-pytorch)))))))
|
||||||
|
|
||||||
(define-public python-pytorch-for-r-torch
|
(define-public python-pytorch-for-r-torch
|
||||||
(package
|
(package
|
||||||
(inherit python-pytorch)
|
(inherit python-pytorch)
|
||||||
|
|
Loading…
Reference in a new issue