Skip to content

Commit

Permalink
[nn_layer_stats] Fix args passing of layer.total_ifmap/ofmap_size().
Browse files Browse the repository at this point in the history
  • Loading branch information
cnjsdfcy authored and gaomy3832 committed Aug 24, 2020
1 parent d7b7ac3 commit 198a527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nn_dataflow/tools/nn_layer_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def layer_stats(args):
elif isinstance(layer, ConvLayer):
convs += 1

ifmap_size = layer.total_ifmap_size(word_bytes) * batch / KILO
ofmap_size = layer.total_ofmap_size(word_bytes) * batch / KILO
ifmap_size = layer.total_ifmap_size(batch, word_bytes) / KILO
ofmap_size = layer.total_ofmap_size(batch, word_bytes) / KILO
try:
filter_size = layer.total_filter_size(word_bytes) / KILO
except AttributeError:
Expand Down

0 comments on commit 198a527

Please sign in to comment.