Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tf_dataset.map(sequential_model(x)) results in Cannot convert a symbolic tf.Tensor (args_0:0) to a numpy array. #18396

Closed
divyashreepathihalli opened this issue Sep 22, 2023 · 1 comment

Comments

@divyashreepathihalli
Copy link
Collaborator

Error with JAX and Torch backend

when dataset = tf_data.Dataset.from_tensor_slices((images, labels)) is used with map function to call a sequential model of augmentation layers results in Cannot convert a symbolic tf.Tensor (args_0:0) to a numpy array. error
repro here

@fchollet
Copy link
Member

Yes, that's expected. Sequential cannot be used with tf.data unless you're running on the TF backend.

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

No branches or pull requests

2 participants