Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

using model.fit instead of model.fit_generator #23

Closed
filbertphang opened this issue Mar 5, 2019 · 0 comments
Closed

using model.fit instead of model.fit_generator #23

filbertphang opened this issue Mar 5, 2019 · 0 comments

Comments

@filbertphang
Copy link

hello!

i am trying to build a classifier on top of the keras-bert model. however, when I attempt to run model.fit on the new model, I constantly get ValueError: An operation has `None` for gradient.

upon further testing, running model.fit on the loaded keras-bert model alone also gives this error. as such, may I clarify if fit_generator must be used for fine-tuningthe BERT model?

(my rationale for not using the original BERT code to fine-tune the model is because I am making use of keras shared layers as part of my classifier, which does not appear to be doable with tensorflow alone)

thank you so much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant