[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
70/130: gnu: python-keras: Enable parallel tests.
From: |
guix-commits |
Subject: |
70/130: gnu: python-keras: Enable parallel tests. |
Date: |
Sat, 16 Oct 2021 02:36:32 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit e4bc73c0daae351f848e3ab4ba7b6c9fa1affe67
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).
- 107/130: gnu: json-glib-minimal: Introduce minimal variant., (continued)
- 107/130: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/10/16
- 106/130: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/10/16
- 108/130: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/10/16
- 113/130: gnu: mesa: Update to 21.2.4., guix-commits, 2021/10/16
- 115/130: gnu: lsof: Disable the LTlock test., guix-commits, 2021/10/16
- 116/130: gnu: lsof: Fix indentation., guix-commits, 2021/10/16
- 123/130: profiles: Add a gdk-pixbuf-loaders-cache-file hook., guix-commits, 2021/10/16
- 126/130: gnu: glib: Update to 2.70, specify a bindir prefix and hide package., guix-commits, 2021/10/16
- 128/130: gnu: libthai: Make datrie a normal native-input., guix-commits, 2021/10/16
- 130/130: gnu: gtk: Add the generate-gdk-pixbuf-loaders-cache-file phase., guix-commits, 2021/10/16
- 70/130: gnu: python-keras: Enable parallel tests.,
guix-commits <=
- 129/130: gnu: glib-networking: Update to 2.70.rc., guix-commits, 2021/10/16
- 86/130: gnu: gdb: Patch references to /bin/sh and add debug output., guix-commits, 2021/10/16
- 104/130: build: glib-or-gtk-build-system: Fix indentation., guix-commits, 2021/10/16
- 99/130: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/10/16
- 120/130: gnu: util-linux: Globally disable the lsns test., guix-commits, 2021/10/16
- 121/130: gnu: heimdal: Fix build., guix-commits, 2021/10/16
- 125/130: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg., guix-commits, 2021/10/16
- 118/130: gnu: openssl: Absorb 1.1.1l graft., guix-commits, 2021/10/16
- 57/130: gnu: Add a missing copyright., guix-commits, 2021/10/16
- 63/130: gnu: gst-plugins-bad: Update to 1.18.5., guix-commits, 2021/10/16