bug fix
This commit is contained in:
		
							parent
							
								
									155585271a
								
							
						
					
					
						commit
						768cdb1acc
					
				| 
						 | 
				
			
			@ -260,6 +260,7 @@ for epoch in range(n_epochs):
 | 
			
		|||
    correct = 0
 | 
			
		||||
    total = 0
 | 
			
		||||
    for idx,(img,label) in tqdm(enumerate(test_loader)):
 | 
			
		||||
        img, label=img.to(device), label.to(device)
 | 
			
		||||
        output = model(img)
 | 
			
		||||
        loss = criterion(output, label)
 | 
			
		||||
        valid_loss += loss.item() * img.shape[0]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue