From 1f1b65ddbca580c3b9893cbc01daa0de709d1d20 Mon Sep 17 00:00:00 2001 From: Ayan Das Date: Sun, 8 Jun 2025 20:52:41 +0530 Subject: [PATCH] gnu: python-captum: Fix tests for PyTorch 2.7.0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/machine-learning.scm (python-captum)[arguments]: Skip test_exp_sets_with_diffent_lengths which fails with PyTorch 2.7.0's stricter torch.load weights_only behavior. Signed-off-by: Ayan Das Signed-off-by: Ludovic Courtès --- gnu/packages/machine-learning.scm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 9636e2cd1919d64383131542e2b56a80b0e84527..c1621d1e0b9aa3a6e84b893b2903ec7b03d5005b 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -5611,11 +5611,14 @@ Actions for the Lightning suite of libraries.") (arguments (list #:test-flags - '(list "-k" - ;; These two tests (out of more than 1000 tests) fail because of - ;; accuracy problems. - "not test_softmax_classification_batch_multi_target\ - and not test_softmax_classification_batch_zero_baseline"))) + '(list "-k" (string-append + ;; These two tests (out of more than 1000 tests) fail because of + ;; accuracy problems. + "not test_softmax_classification_batch_multi_target" + " and not test_softmax_classification_batch_zero_baseline" + ;; This test fails with PyTorch 2.7.0 due to stricter + ;; torch.load weights_only behavior. + " and not test_exp_sets_with_diffent_lengths")))) (propagated-inputs (list python-matplotlib python-numpy python-pytorch python-tqdm)) (native-inputs (list jupyter