Skip to content

Commit

Permalink
Merge pull request #26 from ismaeIfm/patch-1
Browse files Browse the repository at this point in the history
Fix AttributeError: 'ChainCRF' object has no attribute 'inbound_nodes'
  • Loading branch information
Hironsan authored Feb 2, 2018
2 parents c1e66ec + febaa47 commit 95b360c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anago/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def compute_mask(self, input, mask=None):

def _fetch_mask(self):
mask = None
if self.inbound_nodes:
mask = self.inbound_nodes[0].input_masks[0]
if self._inbound_nodes:
mask = self._inbound_nodes[0].input_masks[0]
return mask

def build(self, input_shape):
Expand Down

0 comments on commit 95b360c

Please sign in to comment.