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

slice index 2 of dimension 1 out of bounds. #188

Open
LeeBinshan opened this issue Jan 17, 2024 · 0 comments
Open

slice index 2 of dimension 1 out of bounds. #188

LeeBinshan opened this issue Jan 17, 2024 · 0 comments

Comments

@LeeBinshan
Copy link

I plot the GradCAM with my model(input 12424) and data (24241)
so happens:
“Exception has occurred: InvalidArgumentError
slice index 2 of dimension 1 out of bounds. [Op:StridedSlice] name: strided_slice/
tensorflow.python.eager.core._NotOkStatusException: InvalidArgumentError: slice index 2 of dimension 1 out of bounds. [Op:StridedSlice]

During handling of the above exception, another exception occurred:

File "/home/libinshan/projects/FPAlg/SRCXTestTool/AS/vis_tf_explain.py", line 22, in
grid = explainer.explain(data, model, class_index=2) # 281 is the tabby cat index in ImageNet
tensorflow.python.framework.errors_impl.InvalidArgumentError: slice index 2 of dimension 1 out of bounds. [Op:StridedSlice] name: strided_slice/

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