I got this error when I run the code in google colaboratory
TypeError: The following are legacy tf.layers.Layers:
<main.BertLayer object at 0x7fa94d2f5048>
To use keras as a framework (for instance using the Network, Model, or Sequential classes), please use the tf.keras.layers implementation instead. (Or, if writing custom layers, subclass from tf.keras.layers rather than tf.layers)
I got this error when I run the code in google colaboratory
TypeError: The following are legacy tf.layers.Layers: <main.BertLayer object at 0x7fa94d2f5048> To use keras as a framework (for instance using the Network, Model, or Sequential classes), please use the tf.keras.layers implementation instead. (Or, if writing custom layers, subclass from tf.keras.layers rather than tf.layers)