me
/
guix
Archived
1
0
Fork 0

gnu: python-pytorch-for-r-torch: Define as alias for python-pytorch.

* gnu/packages/machine-learning.scm (python-pytorch-for-r-torch): Remove
duplicate definition.
master
Ricardo Wurmus 2023-05-09 22:54:16 +02:00
parent b60ea1cd17
commit b6b6e89419
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 1 additions and 38 deletions

View File

@ -3416,44 +3416,7 @@ PyTorch when needed.
Note: currently this package does not provide GPU support.") Note: currently this package does not provide GPU support.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-pytorch-for-r-torch (define-public python-pytorch-for-r-torch python-pytorch)
(package
(inherit python-pytorch)
(name "python-pytorch")
(version "1.13.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pytorch/pytorch")
(commit (string-append "v" version))
(recursive? #t)))
(file-name (git-file-name name version))
(sha256
(base32
"17yxjzwp4zp75fz7czgz9acijzw7dpyqcza50v8y1x7hfg2gw369"))
(patches (search-patches "python-pytorch-system-libraries.patch"
"python-pytorch-runpath.patch"))
(modules '((guix build utils)))
(snippet
'(begin
;; XXX: Let's be clear: this package is a bundling fest. We
;; delete as much as we can, but there's still a lot left.
(for-each (lambda (directory)
(delete-file-recursively
(string-append "third_party/" directory)))
'("benchmark" "cpuinfo" "eigen"
;; FIXME: QNNPACK (of which XNNPACK is a fork)
;; needs these.
;; "FP16" "FXdiv" "gemmlowp" "psimd"
"gloo" "googletest" "ios-cmake" "NNPACK"
"onnx" "protobuf" "pthreadpool"
"pybind11" "python-enum" "python-peachpy"
"python-six" "tbb" "XNNPACK" "zstd"))
(substitute* "functorch/CMakeLists.txt"
(("\\$\\{_rpath_portable_origin\\}/../torch/lib")
"$ORIGIN/../torch/lib"))))))))
;; Keep this in sync with python-pytorch ;; Keep this in sync with python-pytorch
(define-public python-torchvision (define-public python-torchvision