Skip to content

Commit febaa47

Browse files
author
Ismael Fernández
authored
Fix AttributeError: 'ChainCRF' object has no attribute 'inbound_nodes'
1 parent c1e66ec commit febaa47

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)