Skip to content

Commit df7ae09

Browse files
committed
reorganize
1 parent e81b8ed commit df7ae09

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

filter_pruning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# Load the pretrained model
3939
net = ConvNet()
40-
net.load_state_dict(torch.load('convnet_pretrained.pkl'))
40+
net.load_state_dict(torch.load('models/convnet_pretrained.pkl'))
4141
if torch.cuda.is_available():
4242
print('CUDA ensabled.')
4343
net.cuda()
@@ -66,4 +66,4 @@
6666

6767

6868
# Save and load the entire model
69-
torch.save(net.state_dict(), 'convnet_pruned.pkl')
69+
torch.save(net.state_dict(), 'models/convnet_pruned.pkl')
File renamed without changes.
File renamed without changes.

weight_pruning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# Load the pretrained model
3939
net = MLP()
40-
net.load_state_dict(torch.load('mlp_pretrained.pkl'))
40+
net.load_state_dict(torch.load('models/mlp_pretrained.pkl'))
4141
if torch.cuda.is_available():
4242
print('CUDA ensabled.')
4343
net.cuda()
@@ -66,4 +66,4 @@
6666

6767

6868
# Save and load the entire model
69-
torch.save(net.state_dict(), 'mlp_pruned.pkl')
69+
torch.save(net.state_dict(), 'models/mlp_pruned.pkl')

0 commit comments

Comments
 (0)