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

IndexError: tuple index out of range #18

Open
Universcle opened this issue Nov 24, 2022 · 7 comments
Open

IndexError: tuple index out of range #18

Universcle opened this issue Nov 24, 2022 · 7 comments

Comments

@Universcle
Copy link

error on 21line of eval.py: mask_pred = net(imgs)

@Huaqq
Copy link

Huaqq commented Dec 6, 2022

I also encountered this error, could you please tell me how you solved it?

@Wzhengkai
Copy link

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x:

@Royalbx
Copy link

Royalbx commented Mar 1, 2023

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

1 similar comment
@Draven4396
Copy link

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

@Wzhengkai
Copy link

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

I found solution in this blog --> https://blog.csdn.net/starvapour/article/details/122275439
or --> NVIDIA/apex#694 (comment)

@Wzhengkai
Copy link

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

I found solution in this blog --> https://blog.csdn.net/starvapour/article/details/122275439
or --> NVIDIA/apex#694 (comment)

@Draven4396
Copy link

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

I found solution in this blog --> https://blog.csdn.net/starvapour/article/details/122275439 or --> NVIDIA/apex#694 (comment)

My problem is solved, thank you very much

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

5 participants