Skip to content

Commit

Permalink
Fix AttributeError: 'ChainCRF' object has no attribute 'inbound_nodes'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismael Fernández authored Jan 30, 2018
1 parent c1e66ec commit febaa47
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 febaa47

Please sign in to comment.