Bug#958038: python3-keras: SyntaxtWarning "is" with a literal
xiscu
xiscu at email.de
Thu Jul 2 17:04:38 BST 2020
Package: python3-keras
Version: 2.3.1+dfsg-2
Followup-For: Bug #958038
Dear Maintainer,
the package has been updated to 2.3.1+dfsg-2 and the SyntaxtWarning are still there:
Setting up python3-keras (2.3.1+dfsg-2) ...
/usr/lib/python3/dist-packages/keras/backend/numpy_backend.py:252: SyntaxWarning: "is" with a literal. Did you mean "=="?
if training is 1 or training is True:
/usr/lib/python3/dist-packages/keras/backend/tensorflow_backend.py:3201: SyntaxWarning: "is" with a literal. Did you mean "=="?
if training is 1 or training is True:
/usr/lib/python3/dist-packages/keras/backend/tensorflow_backend.py:3207: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif training is 0 or training is False:
/usr/lib/python3/dist-packages/keras/backend/theano_backend.py:1734: SyntaxWarning: "is" with a literal. Did you mean "=="?
if training is 1 or training is True:
/usr/lib/python3/dist-packages/keras/backend/theano_backend.py:1740: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif training is 0 or training is False:
/usr/lib/python3/dist-packages/keras/losses.py:683: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if label_smoothing is not 0:
/usr/lib/python3/dist-packages/keras/losses.py:702: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if label_smoothing is not 0:
Thnaks in advance,
xiscu
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (900, 'testing'), (10, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.6.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-keras depends on:
ii python3 3.8.2-3
ii python3-h5py 2.10.0-8
ii python3-keras-applications 1.0.8+ds-1
ii python3-keras-preprocessing 1.1.0+ds-1
ii python3-numpy 1:1.18.4-1
ii python3-scipy 1.4.1-2
ii python3-six 1.15.0-1
ii python3-theano 1.0.4+dfsg-3
ii python3-yaml 5.3.1-2
python3-keras recommends no packages.
python3-keras suggests no packages.
-- no debconf information
More information about the debian-science-maintainers
mailing list