Skip to content

Commit

Permalink
Merge pull request #663 from OP2/mapper_init_defn
Browse files Browse the repository at this point in the history
[loopycompat.Mappers]: call super's constructor
  • Loading branch information
wence- authored May 5, 2022
2 parents 8697788 + a4887c7 commit a33fedf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyop2/codegen/loopycompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class DimChanger(IdentityMapper):
def __init__(self, callee_arg_dict, desired_shape):
self.callee_arg_dict = callee_arg_dict
self.desired_shape = desired_shape
super().__init__()

def map_subscript(self, expr):
if expr.aggregate.name not in self.callee_arg_dict:
Expand Down Expand Up @@ -130,6 +131,7 @@ def _shape_1_if_empty(shape_caller, shape_callee):
class _FunctionCalledChecker(CombineMapper):
def __init__(self, func_name):
self.func_name = func_name
super().__init__()

def combine(self, values):
return any(values)
Expand Down

0 comments on commit a33fedf

Please sign in to comment.