Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pkmr06 committed Jul 31, 2017
1 parent 01b9411 commit 6b7b087
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
.python-version
__pycache__
images
vis.py
results_
6 changes: 6 additions & 0 deletions lib/gradients.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ class SmoothGrad(VanillaGrad):
def __init__(self, pretrained_model, cuda=False, stdev_spread=0.15,
n_samples=25, magnitude=True):
super(SmoothGrad, self).__init__(pretrained_model, cuda)
"""
self.pretrained_model = pretrained_model
self.features = pretrained_model.features
self.cuda = cuda
self.pretrained_model.eval()
"""
self.stdev_spread = stdev_spread
self.n_samples = n_samples
self.magnitutde = magnitude
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 6b7b087

Please sign in to comment.