Skip to content

Commit

Permalink
Remove test_atk.py try, let the program visually expose the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
rikonaka committed Jan 31, 2024
1 parent 449b0d5 commit bac7731
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions code_coverage/script/pickle_cifar10.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
])

testset = datasets.CIFAR10(
root='./data', train=False, download=True, transform=transform_test)
root='../data', train=False, download=True, transform=transform_test)

test_loader = torch.utils.data.DataLoader(
testset, batch_size=100, shuffle=False, num_workers=32)
testset, batch_size=10, shuffle=False, num_workers=32)


def split(testloader):
for (x, y) in testloader:
torch.save(x, 'images.pt')
torch.save(y, 'labels.pt')
torch.save(x, 'images.pth')
torch.save(y, 'labels.pth')
break


Expand Down
2 changes: 1 addition & 1 deletion code_coverage/script/train_simple_resnet18.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import time
import os

from resnet import ResNet18
from code_coverage.script.resnet import ResNet18

device = 'cuda' if torch.cuda.is_available() else 'cpu'
cudnn.benchmark = True
Expand Down

0 comments on commit bac7731

Please sign in to comment.