Closed Fino2020 closed 2 years ago
AttributeError: 'tuple' object has no attribute 'layer' when executing inbound_layers = nest.map_structure(lambda t: t._keras_history.layer, input_tensors)
You'd better use the following package version. do not pip install keras-xlnet==0.16.0 tensorflow==1.14 keras==2.2.4 bert-keras==0.41.0
tensorflow==1.14 keras==2.2.4 bert-keras==0.41.0
AttributeError: 'tuple' object has no attribute 'layer'
when executing inbound_layers = nest.map_structure(lambda t: t._keras_history.layer, input_tensors)