Skip to content
Snippets Groups Projects
Commit c6166e33 authored by Schneider Leo's avatar Schneider Leo
Browse files

datasets

parent 55782a1e
No related merge requests found
......@@ -26,6 +26,7 @@ def train(model, data_train, epoch, optimizer, criterion_rt, criterion_intensity
if forward == 'both':
i=0
for seq, charge, rt, intensity in data_train:
i+=seq.shape[0]
rt, intensity = rt.float(), intensity.float()
if torch.cuda.is_available():
seq, charge, rt, intensity = seq.cuda(), charge.cuda(), rt.cuda(), intensity.cuda()
......
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