Skip to content

Commit

Permalink
Update profile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lburzawa authored Sep 7, 2018
1 parent 7fb29af commit 27e4a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiler/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def count_conv2d(m, x, y):

# total ops
num_out_elements = y.numel()
total_ops = num_out_elements * ops * m.groups
total_ops = num_out_elements * ops

# incase same conv is used multiple times
m.total_ops += torch.Tensor([int(total_ops)])
Expand Down

0 comments on commit 27e4a39

Please sign in to comment.