[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
70/180: gnu: python-keras: Enable parallel tests.
From: |
guix-commits |
Subject: |
70/180: gnu: python-keras: Enable parallel tests. |
Date: |
Fri, 29 Oct 2021 15:56:45 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit f1b8e39ea3c97fd06fa8915ac7d22b94fc976bc1
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).
- 68/180: gnu: gstreamer-docs: Update to 1.18.5., (continued)
- 68/180: gnu: gstreamer-docs: Update to 1.18.5., guix-commits, 2021/10/29
- 71/180: gnu: dbus-c++: Fix build., guix-commits, 2021/10/29
- 67/180: gnu: python-gst: Update to 1.18.5., guix-commits, 2021/10/29
- 72/180: gnu: libnice: Update to 0.1.18-0.47a9633 and disable test-bind test., guix-commits, 2021/10/29
- 66/180: gnu: gst-editing-services: Update to 1.18.5., guix-commits, 2021/10/29
- 75/180: gnu: glibc: Remove unneeded nscd patching., guix-commits, 2021/10/29
- 76/180: gnu: glibc: Look for the current timezone in /etc/localtime., guix-commits, 2021/10/29
- 53/180: gnu: googletest: Update to 1.11.0., guix-commits, 2021/10/29
- 59/180: Revert gstreamer update to 1.19.2., guix-commits, 2021/10/29
- 69/180: gnu: tensorflow: Enable parallel build (at least partially)., guix-commits, 2021/10/29
- 70/180: gnu: python-keras: Enable parallel tests.,
guix-commits <=
- 74/180: gnu: python-keras: Skip a flaky test., guix-commits, 2021/10/29
- 73/180: bluez: Update to 5.61., guix-commits, 2021/10/29
- 77/180: gnu: tzdata: Update to 2021e., guix-commits, 2021/10/29
- 81/180: build: qt-utils: Don't wrap .X-real files., guix-commits, 2021/10/29
- 82/180: gnu: curl: Honor #:tests?., guix-commits, 2021/10/29
- 83/180: gnu: gcc-5: Fix powerpc64le-linux build, guix-commits, 2021/10/29
- 84/180: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/10/29
- 86/180: gnu: gdb: Patch references to /bin/sh and add debug output., guix-commits, 2021/10/29
- 89/180: aux-files: sitecustomize: Cleanup and add explanatory comments., guix-commits, 2021/10/29
- 90/180: gnu: glade3: Remove sitecustomize.py workaround., guix-commits, 2021/10/29