Remove call to .eval(), update results in README, ignore .t7 files

This commit is contained in:
jack-willturner
2020-07-03 12:19:44 +01:00
parent 07a991b3b1
commit 8a593d7f3f
3 changed files with 8 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ from statistics import mean
parser = argparse.ArgumentParser(description='NAS Without Training')
parser.add_argument('--data_loc', default='../datasets/cifar', type=str, help='dataset folder')
parser.add_argument('--api_loc', default='NAS-Bench-201-v1_1-096897.pth',
parser.add_argument('--api_loc', default='../datasets/NAS-Bench-201-v1_1-096897.pth',
type=str, help='path to API')
parser.add_argument('--save_loc', default='results', type=str, help='folder to save results')
parser.add_argument('--batch_size', default=256, type=int)
@@ -116,7 +116,6 @@ for N in runs:
network = get_cell_based_tiny_net(config) # create the network from configuration
network = network.to(device)
network.eval()
jacobs, labels= get_batch_jacobian(network, x, target, 1, device, args)
jacobs = jacobs.reshape(jacobs.size(0), -1).cpu().numpy()