From e4ec4be9485c2293fd15e3deb4fe27f6bb72d334 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 4 Nov 2017 00:23:45 +0100 Subject: [PATCH] Fix parser test --- spacy/tests/test_misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/test_misc.py b/spacy/tests/test_misc.py index 5c69dae3e..fa571ce90 100644 --- a/spacy/tests/test_misc.py +++ b/spacy/tests/test_misc.py @@ -69,7 +69,7 @@ def test_PrecomputableAffine(nO=4, nI=5, nF=3, nP=2): Y, get_dX = model.begin_update(tensor) assert Y.shape == (tensor.shape[0]+1, nF, nO, nP) assert model.d_pad.shape == (1, nF, nO, nP) - dY = model.ops.allocate((15, nF, nO, nP)) + dY = model.ops.allocate((15, nO, nP)) ids = model.ops.allocate((15, nF)) ids[1,2] = -1 dY[1,2] = 1