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

ValueError: The target has to be an integer tensor. #241

Open
mwitiderrick opened this issue Jul 1, 2022 · 0 comments
Open

ValueError: The target has to be an integer tensor. #241

mwitiderrick opened this issue Jul 1, 2022 · 0 comments

Comments

@mwitiderrick
Copy link

What is the right way to use dataloaders from PyTorch and generators from TensorFlow?

This gave the above error

history = model.fit(
    inputs=train_loader,
    epochs=100,
    steps_per_epoch=200,
    validation_data=validation_loader,
    shuffle=True,
    callbacks=[eg.callbacks.ModelCheckpoint("models/high-level", save_best_only=True)],
)
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

1 participant