Skip to content
Snippets Groups Projects
Commit 5c4e5a18 authored by Sun Jin Kim's avatar Sun Jin Kim
Browse files

main.py: add some tensors to device

parent 8c16a607
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,8 @@ def train_child_network(child_network,
device = torch.device('cpu')
child_network = child_network.to(device=device)
total_val=torch.tensor([0.0])
best_acc=torch.tensor([0.0])
total_val=torch.tensor([0.0]).to(device=device)
best_acc=torch.tensor([0.0]).to(device=device)
early_stop_cnt = 0
# logging accuracy for plotting
......
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