Skip to content

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

@LeeBinshan

Description

@LeeBinshan

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions