[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
70/201: gnu: python-keras: Enable parallel tests.
From: |
guix-commits |
Subject: |
70/201: gnu: python-keras: Enable parallel tests. |
Date: |
Mon, 1 Nov 2021 23:18:38 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 3f1b375179a0d676fcf210263508b3c888fe05fc
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Oct 8 22:34:32 2021 -0400
gnu: python-keras: Enable parallel tests.
* (python-keras)[phases]: Delete trailing #t.
{check}: Honor TESTS?. Run the tests in parallel. Disable PEP8 lint.
---
gnu/packages/machine-learning.scm | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index 11c9b02..85460ae 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -2521,24 +2521,26 @@ with image data, text data, and sequence data.")
(delete-file "keras/backend/theano_backend.py")
(delete-file "keras/backend/cntk_backend.py")
(delete-file "tests/keras/backend/backend_test.py")
-
;; FIXME: This doesn't work because Tensorflow is missing the
;; coder ops library.
- (delete-file "tests/keras/test_callbacks.py")
- #t))
+ (delete-file "tests/keras/test_callbacks.py")))
(replace 'check
- (lambda _
- ;; These tests attempt to download data files from the internet.
- (delete-file "tests/integration_tests/test_datasets.py")
- (delete-file "tests/integration_tests/imagenet_utils_test.py")
- ;; Backport https://github.com/keras-team/keras/pull/12479.
- (substitute* "tests/keras/engine/test_topology.py"
- (("np.ones\\(\\(3, 2\\)\\)")
- "1."))
- (invoke "python" "-m" "pytest"
- ;; The following test fail only in the build container;
- ;; skip it.
- "-k" "not test_selu"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; These tests attempt to download data files from the internet.
+ (delete-file "tests/integration_tests/test_datasets.py")
+ (delete-file "tests/integration_tests/imagenet_utils_test.py")
+ ;; Backport https://github.com/keras-team/keras/pull/12479.
+ (substitute* "tests/keras/engine/test_topology.py"
+ (("np.ones\\(\\(3, 2\\)\\)")
+ "1."))
+ (invoke "python" "-m" "pytest" "tests"
+ "-p" "no:pep8"
+ ;; FIXME: python-build-system lacks PARALLEL-TESTS?
+ "-n" (number->string (parallel-job-count))
+ ;; The following test fail only in the build container;
+ ;; skip it.
+ "-k" "not test_selu")))))))
(propagated-inputs
`(("python-h5py" ,python-h5py)
("python-keras-applications" ,python-keras-applications)
@@ -2565,7 +2567,6 @@ with image data, text data, and sequence data.")
and capable of running on top of TensorFlow. It was developed with a focus on
enabling fast experimentation. Use Keras if you need a deep learning library
that:
-
@itemize
@item Allows for easy and fast prototyping (through user friendliness,
modularity, and extensibility).
- 58/201: gnu: polkit: Update to 0.120 and ungraft., (continued)
- 58/201: gnu: polkit: Update to 0.120 and ungraft., guix-commits, 2021/11/01
- 50/201: gnu: lib2geom: Update to 1.1., guix-commits, 2021/11/01
- 56/201: gnu: mozjs-78: Update to 78.15.0., guix-commits, 2021/11/01
- 48/201: gnu: python-gst: Update to 1.19.2., guix-commits, 2021/11/01
- 54/201: gnu: abseil-cpp: Remove googletest patch., guix-commits, 2021/11/01
- 57/201: gnu: Add a missing copyright., guix-commits, 2021/11/01
- 71/201: gnu: dbus-c++: Fix build., guix-commits, 2021/11/01
- 75/201: gnu: glibc: Remove unneeded nscd patching., guix-commits, 2021/11/01
- 55/201: gnu: abseil-cpp: Update to 20210324.2., guix-commits, 2021/11/01
- 67/201: gnu: python-gst: Update to 1.18.5., guix-commits, 2021/11/01
- 70/201: gnu: python-keras: Enable parallel tests.,
guix-commits <=
- 25/201: gnu: gst-plugins-bad: Update to 1.18.4., guix-commits, 2021/11/01
- 44/201: gnu: gst-plugins-bad: Update to 1.19.2., guix-commits, 2021/11/01
- 42/201: gnu: gst-plugins-good: Update to 1.19.2., guix-commits, 2021/11/01
- 125/201: gnu: glib: Update to 2.70, specify a bindir prefix and hide package., guix-commits, 2021/11/01
- 135/201: gnu: ungoogled-chromium: Use the new lld-as-ld-wrapper., guix-commits, 2021/11/01
- 146/201: gnu: nspr: Normalize inputs., guix-commits, 2021/11/01
- 151/201: gnu: python-hypothesis: Update to 6.23.4., guix-commits, 2021/11/01
- 153/201: gnu: boost: Update to 1.77.0., guix-commits, 2021/11/01
- 157/201: gnu: python-dateutil: Update to 2.8.2., guix-commits, 2021/11/01
- 159/201: gnu: gstreamer: Disable the pipelines-seek test., guix-commits, 2021/11/01