[Python-modules-team] Bug#849232: python-brainstorm: test_handler_operations.py::test_conv2d_forward_batch_numpy FAILED
Daniel Stender
debian at danielstender.com
Fri Dec 23 22:09:15 UTC 2016
Source: python-brainstorm
Version: 0.5-2
Severity: important
Since a few runs [1], Brainstorm starts to break in the DEP-8 tests:
<cut>
brainstorm/tests/test_handler_operations.py::test_conv2d_forward_batch_numpy FAILED
=========================== short test summary info ============================
SKIP [1] brainstorm/tests/test_describable.py:315: requires pycuda and skcuda
=================================== FAILURES ===================================
_______________________ test_conv2d_forward_batch_numpy ________________________
def test_conv2d_forward_batch_numpy():
_h = NumpyHandler(dtype=dtype)
for input_shape in ((3, 3), (5, 4), (4, 9)):
for nr_images in (1, 4):
for nr_input_maps in (1, 3):
for nr_filters in (1, 3):
for kernel_shape in ((1, 1), (2, 2), (3, 2)):
for stride in ((1, 1), (2, 2), (1, 2)):
for padding in (0, 1):
inputs = np.random.rand(
nr_images, input_shape[0], input_shape[1],
nr_input_maps).astype(dtype)
weights = np.random.rand(
nr_filters, kernel_shape[0],
kernel_shape[1], nr_input_maps).astype(
dtype)
bias = np.zeros(nr_filters).astype(dtype)
output_height = \
(input_shape[0] + 2 * padding -
kernel_shape[0]) / stride[0] + 1
output_width = \
(input_shape[1] + 2 * padding -
kernel_shape[1]) / stride[1] + 1
outputs = np.zeros((nr_images,
output_height,
output_width,
> nr_filters), dtype=dtype)
E TypeError: 'float' object cannot be interpreted as an integer
brainstorm/tests/test_handler_operations.py:86: TypeError
============================ pytest-warning summary ============================
WC1 None [pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead.
!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!
====== 1 failed, 72 passed, 1 skipped, 1 pytest-warnings in 0.90 seconds =======
</cut>
I haven't got into it now, but it could be this is another regression from the
update of Numpy to 1.12.0, like it affected other packages.
Thanks,
DS
[1] https://ci.debian.net/packages/p/python-brainstorm/unstable/amd64/
[2] https://bugs.debian.org/849177 (python-numpy: Please revert transition that happened past transition freeze)
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
More information about the Python-modules-team
mailing list