[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: tensorflow: Patch one more instance of "collections".
From: |
guix-commits |
Subject: |
04/06: gnu: tensorflow: Patch one more instance of "collections". |
Date: |
Tue, 20 Jun 2023 17:41:51 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit b4e37a3972b8e237214b52bf631fb6b69408e445
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jun 20 18:39:07 2023 +0200
gnu: tensorflow: Patch one more instance of "collections".
* gnu/packages/machine-learning.scm (tensorflow)[arguments]: Add one more
patch of "collections" to "collections.abc" to the 'python3.10-compatibility
phase.
---
gnu/packages/machine-learning.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index a3edbcb894..13651f4035 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -2435,6 +2435,8 @@ Python.")
(substitute* "tensorflow/python/keras/callbacks.py"
(("from collections import Iterable")
"from collections.abc import Iterable"))
+ (substitute* "tensorflow/python/ops/variable_scope.py"
+ (("collections_lib.Sequence") "collections_lib.abc.Sequence"))
;; XXX: it is not clear if this is a good idea, but the build
;; system tries to overwrite the __or__ and __ror__ methods of
@@ -2453,7 +2455,7 @@ Python.")
"void CompareUFunc(char** args, npy_intp const* dimensions,
npy_intp const* steps,"))
;; ...and for numpy >= 1.23
- (substitute* '("tensorflow/python/framework/tensor_util.py")
+ (substitute* "tensorflow/python/framework/tensor_util.py"
(("np.asscalar\\(x\\[0\\]\\)") "x[0].item()")
(("np.asscalar\\(x\\)") "x.item()")
(("np.asscalar\\(v\\)") "np.ndarray.item(v)")
- branch master updated (24fc0d506a -> 6a91d4b8e0), guix-commits, 2023/06/20
- 02/06: gnu: tensorflow: Patch for numpy >= 1.23., guix-commits, 2023/06/20
- 05/06: gnu: python-keras: Update to 2.3.1., guix-commits, 2023/06/20
- 04/06: gnu: tensorflow: Patch one more instance of "collections".,
guix-commits <=
- 06/06: gnu: python-dask: Add missing input., guix-commits, 2023/06/20
- 01/06: gnu: tensorflow: Drop package labels from propagated-inputs., guix-commits, 2023/06/20
- 03/06: gnu: tensorflow: Drop trailing #T from build phase., guix-commits, 2023/06/20