Skip to content

Commit

Permalink
fix op_flops not define. test=develop (#36489)
Browse files Browse the repository at this point in the history
  • Loading branch information
heavengate authored Oct 19, 2021
1 parent 49d7bd3 commit f261246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/paddle/hapi/static_flops.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def count_element_op(op):
def _graph_flops(graph, detail=False):
assert isinstance(graph, GraphWrapper)
flops = 0
op_flops = 0
table = Table(["OP Type", 'Param name', "Flops"])
for op in graph.ops():
param_name = ''
Expand Down

0 comments on commit f261246

Please sign in to comment.