From f31dbec5284ab5197514c19d57000e3761a47b05 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 21 Feb 2019 11:10:10 +0100 Subject: [PATCH] More fixes for #3112 --- spacy/syntax/_parser_model.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/_parser_model.pyx b/spacy/syntax/_parser_model.pyx index 85463dbb8..5bfb0b410 100644 --- a/spacy/syntax/_parser_model.pyx +++ b/spacy/syntax/_parser_model.pyx @@ -268,7 +268,7 @@ class ParserStepModel(Model): def backprop_parser_step(d_scores, sgd=None): # If we have a non-zero gradient for a previously unseen class, # replace the weight with 0. - new_classes = self.ops.xp.logical_and( + new_classes = self.vec2scores.ops.xp.logical_and( self.vec2scores.ops.xp.isnan(self.vec2scores.b), d_scores.any(axis=0) )