Skip to content

Commit

Permalink
Feat (graph/standardize): default keepdim value (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored May 1, 2024
1 parent 0c52c9a commit 564f64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/graph/standardize.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def match_node(self, node: Node) -> bool:
is_adaptive_2d_mean = ((2, 3) in node.args or [2, 3] in node.args or
'dim' in node.kwargs and
(node.kwargs['dim'] == (2, 3) or node.kwargs['dim'] == [2, 3]))
is_adaptive_2d_mean = is_adaptive_2d_mean and not node.kwargs['keepdim']
is_adaptive_2d_mean = is_adaptive_2d_mean and not node.kwargs.get('keepdim', False)
return spr and is_adaptive_2d_mean

def move_node_args_to_kwargs(self, node: Node):
Expand Down

0 comments on commit 564f64a

Please sign in to comment.