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

overview.ipynb notebook failing #911

Open
jklaise opened this issue Apr 17, 2023 · 1 comment
Open

overview.ipynb notebook failing #911

jklaise opened this issue Apr 17, 2023 · 1 comment

Comments

@jklaise
Copy link
Contributor

jklaise commented Apr 17, 2023

Error message is NotImplementedError: numpy() is only available when eager execution is enabled. so seems tensorflow related.

Started failing (with tensorflow 2.11.1): https://github.com/SeldonIO/alibi/actions/runs/4647731609/jobs/8224890365

Passing run 3 weeks ago (with tensorflow 2.10.1): https://github.com/SeldonIO/alibi/actions/runs/4521806562/jobs/7963758404

@jklaise
Copy link
Contributor Author

jklaise commented Apr 17, 2023

Narrowed it down to this call inside the training script function:

    y_pred = model(scaler.transform(X_test)).numpy().argmax(axis=1)

It seems something changed with 2.11 and numpy() calls are not longer allowed within a non-eager execution context.

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