[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#72747: [PATCH] gnu: tensorflow-lite: Fix build.
From: |
Andy Tai |
Subject: |
bug#72747: [PATCH] gnu: tensorflow-lite: Fix build. |
Date: |
Wed, 28 Aug 2024 07:23:35 -0700 |
* gnu/packages/machine-learning.scm (tensorflow-lite): Fix build.
[inputs]: Change flatbuffers-next to flatbuffers-23.1.
* gnu/packages/serialization.scm (flatbuffers-23.1): New variable.
Change-Id: I257c3563cb91cbf8e0f0874367aafced248ab4dc
---
gnu/packages/machine-learning.scm | 2 +-
gnu/packages/serialization.scm | 15 +++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index 4c5b713cbf..fd790e4455 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -3487,7 +3487,7 @@ (define-public tensorflow-lite
("cpuinfo" ,cpuinfo)
("eigen" ,eigen)
("fp16" ,fp16)
- ("flatbuffers" ,flatbuffers-next)
+ ("flatbuffers" ,flatbuffers-23.1)
("gemmlowp" ,gemmlowp)
("mesa-headers" ,mesa-headers)
("neon2sse" ,neon2sse)
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 6aaf416467..c33b251b13 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -899,6 +899,21 @@ (define-public flatbuffers
game development and other performance-critical applications.")
(license license:asl2.0)))
+(define-public flatbuffers-23.1
+ ;; needed explicitly by tensorflow-lite 2.13.1
+ (package
+ (inherit flatbuffers)
+ (version "23.1.21")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/flatbuffers")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name "flatbuffers" version))
+ (sha256
+ (base32
+ "1z3a6l8g2y53i5xzraswfs2i0i3kk52zv7nzc2q3fgisbyiri3pz"))))))
+
(define-public flatbuffers-next
(package
(inherit flatbuffers)
base-commit: 53396a22afc04536ddf75d8f82ad2eafa5082725
--
2.34.1