[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
70/217: gnu: python-keras: Enable parallel tests.
From: |
guix-commits |
Subject: |
70/217: gnu: python-keras: Enable parallel tests. |
Date: |
Sun, 14 Nov 2021 19:20:43 -0500 (EST) |
vagrantc pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 4ea7eea1a076ce32ce4b791847ff6b85cb1758f2
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).
- 36/217: gnu: python-sphinxcontrib-htmlhelp: Update to 2.0.0., (continued)
- 36/217: gnu: python-sphinxcontrib-htmlhelp: Update to 2.0.0., guix-commits, 2021/11/14
- 38/217: gnu: python-sphinx: Update to 4.2.0., guix-commits, 2021/11/14
- 40/217: gnu: gstreamer: Update to 1.19.2., guix-commits, 2021/11/14
- 42/217: gnu: gst-plugins-good: Update to 1.19.2., guix-commits, 2021/11/14
- 44/217: gnu: gst-plugins-bad: Update to 1.19.2., guix-commits, 2021/11/14
- 45/217: gnu: gst-plugins-ugly: Update to 1.19.2., guix-commits, 2021/11/14
- 46/217: gnu: gst-libav: Update to 1.19.2., guix-commits, 2021/11/14
- 50/217: gnu: lib2geom: Update to 1.1., guix-commits, 2021/11/14
- 61/217: gnu: gst-plugins-base: Update to 1.18.5., guix-commits, 2021/11/14
- 58/217: gnu: polkit: Update to 0.120 and ungraft., guix-commits, 2021/11/14
- 70/217: gnu: python-keras: Enable parallel tests.,
guix-commits <=
- 52/217: Revert commits made to resolve a gdk-pixbuf+svg propagation issue., guix-commits, 2021/11/14
- 69/217: gnu: tensorflow: Enable parallel build (at least partially)., guix-commits, 2021/11/14
- 77/217: gnu: tzdata: Update to 2021e., guix-commits, 2021/11/14
- 79/217: gnu: diffutils: Fix signal processing., guix-commits, 2021/11/14
- 90/217: gnu: glade3: Remove sitecustomize.py workaround., guix-commits, 2021/11/14
- 103/217: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase., guix-commits, 2021/11/14
- 118/217: gnu: cmake-bootstrap: Update to 3.21.3., guix-commits, 2021/11/14
- 43/217: gnu: zxing-cpp: Update to 1.2.0., guix-commits, 2021/11/14
- 60/217: gnu: gstreamer: Update to 1.18.5., guix-commits, 2021/11/14
- 48/217: gnu: python-gst: Update to 1.19.2., guix-commits, 2021/11/14