Skip to content

Commit

Permalink
Update perspective.py
Browse files Browse the repository at this point in the history
fix logdir bug inFeatureVisualization
  • Loading branch information
dingguanglei committed Dec 5, 2019
1 parent 416ec21 commit dacab5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdit/perspective.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, model: Union[Model, Module], logdir: str):
model.eval()
self.model = model
self.activations: Dict[str, Tensor] = {}
self.watcher = Watcher(logdir=log)
self.watcher = Watcher(logdir=logdir)

def _hook(self, name: str):
def hook(model, input, output):
Expand Down

0 comments on commit dacab5c

Please sign in to comment.