Update call into thinc

This commit is contained in:
Matthew Honnibal 2018-03-13 13:59:59 +01:00
parent f2fa8481c4
commit 7b755414eb

View File

@ -161,7 +161,7 @@ class PrecomputableAffine(Model):
Wopfi = self.W.transpose((1, 2, 0, 3)) Wopfi = self.W.transpose((1, 2, 0, 3))
Wopfi = self.ops.xp.ascontiguousarray(Wopfi) Wopfi = self.ops.xp.ascontiguousarray(Wopfi)
Wopfi = Wopfi.reshape((self.nO*self.nP, self.nF * self.nI)) 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 # Reuse the buffer
dWopfi = Wopfi; dWopfi.fill(0.) dWopfi = Wopfi; dWopfi.fill(0.)