Cast string to int64 is not supported in Keras/Tensorlow
I’m new to keras and tensorflow I want to create a Siamese network using KerasNLP example given here Siamese RoBERTa-networks.
My idea is to read the data from a tfrec file using TFRecordDataset. Now this dataset is parsed and ultimately, it returns (entry_lp, exit_lp), match
output_shape of custom keras layer is None (or cannot be determined automatically)
I am building a custom Keras layer that it is essentially the softmax function with a base parameter which is trainable. While the layer works on its own, when placed inside a sequential model, model.summary()
determines its output shape as None
and model.fit()
raises a presumably linked exception: