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

inputs is empty #7

Closed
tigerccx opened this issue Dec 24, 2020 · 1 comment
Closed

inputs is empty #7

tigerccx opened this issue Dec 24, 2020 · 1 comment

Comments

@tigerccx
Copy link

I am trying to run the model with BalancedDataParallel and I initialized my network with
tt = TT(args, device).to(device); if ((not args.cpu) and (args.num_gpu > 1)): tt = BalancedDataParallel(1 ,tt, dim=0);.

But I keep getting this error:
data_parallel_my.py", line 79, in scatter bsz = inputs[0].size(self.dim) IndexError: tuple index out of range

I printed inputs out and found it to be empty. My code works with DataParallel itself so I am not sure what went wrong. Here is where I try to call the network: srhd, S, T_lv3, T_lv2, T_lv1 = tt(lr=sr, ref=ref)

@Link-Li
Copy link
Owner

Link-Li commented Dec 24, 2020

I can not find any error juse through your code here,maybe you can make some debug to find solution.

@Link-Li Link-Li closed this as completed Mar 11, 2021
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

2 participants