From 7b755414ebcf3723543af870a7ece33ad726b4a5 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 13 Mar 2018 13:59:59 +0100 Subject: [PATCH] Update call into thinc --- spacy/_ml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/_ml.py b/spacy/_ml.py index a6686c177..158c20e18 100644 --- a/spacy/_ml.py +++ b/spacy/_ml.py @@ -161,7 +161,7 @@ class PrecomputableAffine(Model): Wopfi = self.W.transpose((1, 2, 0, 3)) Wopfi = self.ops.xp.ascontiguousarray(Wopfi) Wopfi = Wopfi.reshape((self.nO*self.nP, self.nF * self.nI)) - dXf = self.ops.dot(dY.reshape((dY.shape[0], self.nO*self.nP)), Wopfi) + dXf = self.ops.gemm(dY.reshape((dY.shape[0], self.nO*self.nP)), Wopfi) # Reuse the buffer dWopfi = Wopfi; dWopfi.fill(0.)