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

Too many compile error #11

Open
lxgyChen opened this issue Jul 24, 2019 · 0 comments
Open

Too many compile error #11

lxgyChen opened this issue Jul 24, 2019 · 0 comments

Comments

@lxgyChen
Copy link

lxgyChen commented Jul 24, 2019

my pytorch version is 1.1.0

  1. in dataset.py
    Line 51: class TheDataset(data.dataset):
    class TheDataset(data.dataset): TypeError: module() takes at most 2 arguments (3 given)
    I solve it by changing to:class TheDataset(data.Dataset)

2.in train.py
Line 64: dataloader = torch.utils.data.dataLoader(train_set, batch_size=args.batch_size...)
dataloader = torch.utils.data.dataLoader(train_set, batch_size=args.batch_size, shuffle=True, AttributeError: module 'torch.utils.data' has no attribute 'dataLoader'
I solve it by changing to:dataloader = torch.utils.data.DataLoader(train_set, batch_size=args.batch_size...)

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

1 participant