Skip to content

Commit 95b360c

Browse files
authored
Merge pull request #26 from ismaeIfm/patch-1
Fix AttributeError: 'ChainCRF' object has no attribute 'inbound_nodes'
2 parents c1e66ec + febaa47 commit 95b360c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

anago/layers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ def compute_mask(self, input, mask=None):
273273

274274
def _fetch_mask(self):
275275
mask = None
276-
if self.inbound_nodes:
277-
mask = self.inbound_nodes[0].input_masks[0]
276+
if self._inbound_nodes:
277+
mask = self._inbound_nodes[0].input_masks[0]
278278
return mask
279279

280280
def build(self, input_shape):

0 commit comments

Comments
 (0)