Skip to content
Snippets Groups Projects
Commit e1c458e7 authored by friebolin's avatar friebolin
Browse files

Add print

parent 5a130063
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ input_as_dataset = Code.preprocess.tokenizer_new(tokenizer, data_sample, max_len
model = Code.models.WordClassificationModel("bert-base-uncased")
model_path = "saved_models/bert.pth"
model_path = "Code/saved_models/bert.pth"
model = torch.load(model_path, map_location=device)
model.eval()
......@@ -85,6 +85,7 @@ train_sampler = RandomSampler(data_sample)
train_dataloader = DataLoader(data_sample, sampler=train_sampler, batch_size=1)
for batch in train_dataloader:
print(batch)
inputs = {'input_ids': batch[0],
'attention_mask': batch[1],
'token_type_ids': batch[2],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment