Skip to content

Commit

Permalink
Merge pull request #3 from Barabaika/main
Browse files Browse the repository at this point in the history
issue2
  • Loading branch information
tanishAI authored Feb 13, 2024
2 parents 4d2a9ef + 0cab94a commit 4b5995e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SEMA_1D/SEMA-1D_inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@
" model.eval()\n",
" model.cuda()\n",
"\n",
"with torch.no_grad():\n",
" preds=[]\n",
" for it in tqdm(test_ds):\n",
" preds.append(model.forward(it['token_ids'].cuda())[0][0][:,1].cpu().numpy())\n",
"res.append(preds)"
" with torch.no_grad():\n",
" preds=[]\n",
" for it in tqdm(test_ds):\n",
" preds.append(model.forward(it['token_ids'].cuda())[0][0][:,1].cpu().numpy())\n",
" res.append(preds)"
]
},
{
Expand Down

0 comments on commit 4b5995e

Please sign in to comment.