emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#39562: closed (python-keras build fails: test_selu: Not equal to tol


From: GNU bug Tracking System
Subject: bug#39562: closed (python-keras build fails: test_selu: Not equal to tolerance rtol=1e-07, atol=0)
Date: Mon, 05 Oct 2020 05:53:02 +0000

Your message dated Mon, 05 Oct 2020 01:52:34 -0400
with message-id <87imbpjk2l.fsf@gmail.com>
and subject line Re: bug#39562: python-keras build fails: test_selu: Not equal 
to tolerance rtol=1e-07, atol=0
has caused the debbugs.gnu.org bug report #39562,
regarding python-keras build fails: test_selu: Not equal to tolerance 
rtol=1e-07, atol=0
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
39562: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39562
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: python-keras build fails: test_selu: Not equal to tolerance rtol=1e-07, atol=0 Date: Tue, 11 Feb 2020 11:49:45 +0100
Tests fail with:

--8<---------------cut here---------------start------------->8---
=================================== FAILURES ===================================
__________________________________ test_selu ___________________________________

    def test_selu():
        x = K.placeholder(ndim=2)
        f = K.function([x], [activations.selu(x)])
        alpha = 1.6732632423543772848170429916717
        scale = 1.0507009873554804934193349852946

        positive_values = get_standard_values()
        result = f([positive_values])[0]
        assert_allclose(result, positive_values * scale, rtol=1e-05)

        negative_values = np.array([[-1, -2]], dtype=K.floatx())

        result = f([negative_values])[0]
        true_result = (np.exp(negative_values) - 1) * scale * alpha

>       assert_allclose(result, true_result)
E       AssertionError:
E       Not equal to tolerance rtol=1e-07, atol=0
E
E       Mismatch: 50%
E       Max absolute difference: 1.1920929e-07
E       Max relative difference: 1.0726715e-07
E        x: array([[-1.111331, -1.520167]], dtype=float32)
E        y: array([[-1.111331, -1.520167]], dtype=float32)

tests/keras/activations_test.py:226: AssertionError
--8<---------------cut here---------------end--------------->8---

See attached log.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

Attachment: signature.asc
Description: PGP signature

Attachment: keras-build.log
Description: Binary data


--- End Message ---
--- Begin Message --- Subject: Re: bug#39562: python-keras build fails: test_selu: Not equal to tolerance rtol=1e-07, atol=0 Date: Mon, 05 Oct 2020 01:52:34 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Pierre Neidhardt <mail@ambrevar.xyz> writes:

> Patch sent: 39880@debbugs.gnu.org.
> Also see https://github.com/keras-team/keras/issues/13856.

I fixed it with a substitute* instead, and also applied another upstream
fix in commit 5f37d7e38e.

Thanks for the report!

Closing,

Maxim


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]