tf-explain icon indicating copy to clipboard operation
tf-explain copied to clipboard

slice index 2 of dimension 1 out of bounds.

Open LeeBinshan opened this issue 1 year ago • 0 comments

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/ ”

LeeBinshan avatar Jan 17 '24 09:01 LeeBinshan