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

Issue with running EmpTransfo code #7

Open
sandeep3119 opened this issue Sep 5, 2022 · 3 comments
Open

Issue with running EmpTransfo code #7

sandeep3119 opened this issue Sep 5, 2022 · 3 comments

Comments

@sandeep3119
Copy link

Got an error with initial setup and code reproducing. Please help me out running the code.

INFO:train_multihead.py:Build inputs and labels
INFO:train_multihead.py:Pad inputs and convert to Tensor
Traceback (most recent call last):
File "train_multihead.py", line 308, in
train()
File "train_multihead.py", line 204, in train
train_loader, val_loader, train_sampler, valid_sampler = get_data_loaders(config, tokenizer)
File "train_multihead.py", line 147, in get_data_loaders
tensor = torch.tensor(dataset[input_name])
TypeError: an integer is required (got type list)

@wonderengg
Copy link

I also encountered the same problem, did you solve it? How to solve it?thanks

@Banana-lwz
Copy link

I also encountered the same problem, did you solve it? How to solve it?thanks

Have you solved this problem yet? I also encountered this problem, I do not know where the problem lies nali

@Banana-lwz
Copy link

I also encountered the same problem, did you solve it? How to solve it?thanks
Hello, have you solved this problem now?

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

3 participants