diff options
author | David Elsing <david.elsing@posteo.net> | 2024-03-23 22:05:10 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-06-18 11:45:46 +0200 |
commit | 085551a40fc81d24a672269516d68b157ff8f25d (patch) | |
tree | 723851952461ec160f07d163bf4f7b22bf39fc80 /gnu/packages | |
parent | e587d8fb695b1efc73f838d008da8c4888327479 (diff) | |
download | guix-085551a40fc81d24a672269516d68b157ff8f25d.tar guix-085551a40fc81d24a672269516d68b157ff8f25d.tar.gz |
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/machine-learning.scm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index be8f676b36..3508d99346 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -4764,6 +4764,34 @@ Note: currently this package does not provide GPU support.") (delete 'disable-avx-dependencies))))) (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 (package (inherit python-pytorch) |