Skip to content

Commit

Permalink
writer.add_graph fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dingguanglei committed Nov 15, 2018
1 parent e4f1888 commit d58c0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdit/trainer/super.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def graph(self, model: Union[torch.nn.Module, torch.nn.DataParallel, Model],
res = proto_model(*input)
self.scalars({'ParamsNum': num_params}, 1, tag="ParamsNum")
del res
self.writer.add_graph(proto_model, *input)
self.writer.add_graph(proto_model, input)

def _count_params(self, proto_model: torch.nn.Module):
"""count the total parameters of model.
Expand Down

0 comments on commit d58c0c5

Please sign in to comment.