This is an automated email from the git hooks/post-receive script.

hako pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new c26287d796 gnu: Add dlpack.
c26287d796 is described below

commit c26287d7966986a81ab3481e33ba7d20c62d09f7
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Aug 3 23:04:36 2024 +0200

    gnu: Add dlpack.
    
    * gnu/packages/machine-learning.scm (dlpack): New variable.
    
    Change-Id: I9223e5c3b8f8317f88954cfdaccdfa11a51b7167
    Signed-off-by: Hilton Chain <[email protected]>
    Modified-by: Hilton Chain <[email protected]>
---
 gnu/packages/machine-learning.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index b05ea0c202..40727b55eb 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -134,6 +134,28 @@
   #:use-module (gnu packages xorg)
   #:use-module (ice-9 match))
 
+(define-public dlpack
+  (package
+    (name "dlpack")
+    (version "1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/dmlc/dlpack";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "169slm88jin4ddhdwk1qhqzzkhkwk1jrz35i7abhcqkry9wjib4f"))))
+    (build-system cmake-build-system)
+    (arguments (list #:tests? #f))      ;No tests.
+    (home-page "https://github.com/dmlc/dlpack";)
+    (synopsis "In memory tensor structure")
+    (description
+     "DLPack is an in-memory tensor structure for sharing tensors among
+frameworks.")
+    (license license:asl2.0)))
+
 (define-public fasttext
   (package
     (name "fasttext")

Reply via email to