You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating tensorflow, keras and trasformer then ran this code:
# Konfigurasi optimizer, loss, dan metrik
optimizer = tf.keras.optimizers.Adam(learning_rate=2e-5)
loss = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True)
metric = tf.keras.metrics.SparseCategoricalAccuracy('accuracy')
# Kompilasi model
model.compile(optimizer=optimizer, loss=loss, metrics=[metric])
# Pelatihan model
model.fit(train_dataset, epochs=3, validation_data=test_dataset)
I got an error like this:
RuntimeError: Failed to import transformers.models.bert.modeling_tf_bert because of the following error (look up to see its traceback):
module 'tensorflow._api.v2.compat.v2.internal' has no attribute 'register_load_context_function'
What happens?
The text was updated successfully, but these errors were encountered:
After updating tensorflow, keras and trasformer then ran this code:
I got an error like this:
What happens?
The text was updated successfully, but these errors were encountered: