AttributeError: 'Node' object has no attribute 'output_masks'
sumansahoo16 opened this issue · 8 comments
sumansahoo16 commented
While using tcn.tcn.TCN() from the new version
I am getting an error :
/usr/local/lib/python3.6/dist-packages/keras/engine/base_layer.py in _collect_previous_mask(input_tensors)
1439 inbound_layer, node_index, tensor_index = x._keras_history
1440 node = inbound_layer._inbound_nodes[node_index]
-> 1441 mask = node.output_masks[tensor_index]
1442 masks.append(mask)
1443 else:
AttributeError: 'Node' object has no attribute 'output_masks'
Linux-4.19.104+-x86_64-with-Ubuntu-18.04-bionic
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
[GCC 8.3.0]
NumPy 1.18.3
SciPy 1.4.1
Thanks in advance.
philipperemy commented
@sumansahoo16 Which version of tensorflow/keras are you using?
sumansahoo16 commented
tf 2.2.0-rc3
philipperemy commented
Can you try with the latest stable tensorflow 2.1?
marsln commented
Hello! I am also having this issue. I am using google colab with tensorflow 2.1.0
and keras 2.3.1.
philipperemy commented
@marsln can you use keras 2.2.4? Seems like they introduced some compat breaking changes.
marsln commented
2.2.4
It worked..! Thanks! :)
..with tensorflow 2.2.0 and keras 2.2.4.
philipperemy commented
Great!
philipperemy commented
I'll close this issue for now.