[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
70/149: gnu: python-keras: Enable parallel tests.
From: |
guix-commits |
Subject: |
70/149: gnu: python-keras: Enable parallel tests. |
Date: |
Tue, 26 Oct 2021 23:52:21 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 3a9ea1c33e95675ebf2b33c39392ee231b5da8b5
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).
- 42/149: gnu: gst-plugins-good: Update to 1.19.2., (continued)
- 42/149: gnu: gst-plugins-good: Update to 1.19.2., guix-commits, 2021/10/26
- 40/149: gnu: gstreamer: Update to 1.19.2., guix-commits, 2021/10/26
- 43/149: gnu: zxing-cpp: Update to 1.2.0., guix-commits, 2021/10/26
- 47/149: gnu: gst-editing-services: Update to 1.19.2., guix-commits, 2021/10/26
- 49/149: gnu: e2fsprogs: Update to 1.46.4., guix-commits, 2021/10/26
- 50/149: gnu: lib2geom: Update to 1.1., guix-commits, 2021/10/26
- 51/149: gnu: pulseaudio: Update to 15.0., guix-commits, 2021/10/26
- 52/149: Revert commits made to resolve a gdk-pixbuf+svg propagation issue., guix-commits, 2021/10/26
- 55/149: gnu: abseil-cpp: Update to 20210324.2., guix-commits, 2021/10/26
- 56/149: gnu: mozjs-78: Update to 78.15.0., guix-commits, 2021/10/26
- 70/149: gnu: python-keras: Enable parallel tests.,
guix-commits <=
- 64/149: gnu: gst-plugins-ugly: Update to 1.18.5., guix-commits, 2021/10/26
- 65/149: gnu: gst-libav: Update to 1.18.5., guix-commits, 2021/10/26
- 67/149: gnu: python-gst: Update to 1.18.5., guix-commits, 2021/10/26
- 73/149: bluez: Update to 5.61., guix-commits, 2021/10/26
- 78/149: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/10/26
- 81/149: build: qt-utils: Don't wrap .X-real files., guix-commits, 2021/10/26
- 92/149: gnu: rust: Add rust 1.54 and move all non-bootstrapping logic to it., guix-commits, 2021/10/26
- 96/149: gnu: python-pypa-build: Update to 0.7.0., guix-commits, 2021/10/26
- 84/149: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/10/26
- 58/149: gnu: polkit: Update to 0.120 and ungraft., guix-commits, 2021/10/26