Closed WeichenXu123 closed 2 weeks ago
It seems we're no longer detecting object
arrays as string arrays, probably because we've upgraded our numpy dependency. Object arrays are ambiguous since they can contain anything, not just strings.
I recommend instead using tf.string
tensors, which are explicitly strings and are also much more memory efficient:
train_samples = tf.convert_to_tensor(["this is an example", "another example"])
This would fix your code example.
I fixed it at HEAD, regardless.
Tensorflow version:
2.19.0-dev20241108
Keras version:
3.7.0.dev2024111103
Installation command:
pip install --pre tf-nightly
Reproducing code:
Error stack:
The same code works in "keras==3.6.0"