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

BrokenPipeError:[Errno 32] Broken pipe. #2

Open
mjchen611 opened this issue Aug 8, 2017 · 2 comments
Open

BrokenPipeError:[Errno 32] Broken pipe. #2

mjchen611 opened this issue Aug 8, 2017 · 2 comments

Comments

@mjchen611
Copy link

mjchen611 commented Aug 8, 2017

Hi, I use Pytorch to run a triplet network(GPU), but when I got data , there was always a error: BrokenPipeError:[Errno 32] Broken pipe.

I thought it may be something wrong in the following codes:

for batch_idx, (data1, data2, data3) in enumerate(test_loader):
if args.cuda:
data1, data2, data3 = data1.cuda(), data2.cuda(), data3.cuda()
data1, data2, data3 = Variable(data1), Variable(data2), Variable(data3)

Can you give me some suggestions? Thank you so much.

@mjchen611
Copy link
Author

And I use it in Windows8.1 with Cuda

@rafis
Copy link

rafis commented Aug 19, 2019

Change to num_workers from 1 to 0 in kwargs of torch.utils.data.DataLoader to see the real error. The real error probably could be RuntimeError: CUDNN_STATUS_ARCH_MISMATCH - this do mean that you have an old graphics card with CUDA Compute Capability less than 3.0, but cudNN works only with 3.0+. If you don't want to buy new graphics card (personally I hate NVidia for being milking machine) look into the methods of transfer learning and use some pre-trained features.

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