Closed pedrosergiot closed 3 years ago
Good catch, Thank you. It seems a problem that has arisen with the new tensorflow version 2.4.0. I get the same error on my examples in google colab. Installing tensorflow 2.3.0 should solve the issue. I will try to make a fix for tensorflow 2.4.0 in the next few days. Let me know if you have any further problems.
P.S. If you use BinaryCrossentropy with option from_logits=True (that is more numerically stable), I would suggest you to use a linear activation in the final layer. If you use a sigmoid activation set from_logits=False.
Hi.
First of all, thank you very much for the effort in developing this version of LM for Keras, which is the only implementation as far as I know. The main issue that I am facing is related to the following error.
TypeError: Cannot convert a symbolic Keras input/output to a numpy array. This error may indicate that you're trying to pass a symbolic value to a NumPy call, which is not supported. Or, you may be trying to pass Keras symbolic inputs/outputs to a TF API that does not register dispatching, preventing Keras from automatically converting the API call to a lambda layer in the Functional Model.
This error arises as I try to execute the training for the model as
Can you give me a little help with any ideias for this specific error? I would be very grateful for any insight.