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 committed Aug 24, 2020
1 parent d7b7ac3 commit a54c06b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nn_dataflow/tools/nn_layer_stats.py
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 a54c06b

Please sign in to comment.