We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8697788 + a4887c7 commit a33fedfCopy full SHA for a33fedf
pyop2/codegen/loopycompat.py
@@ -32,6 +32,7 @@ class DimChanger(IdentityMapper):
32
def __init__(self, callee_arg_dict, desired_shape):
33
self.callee_arg_dict = callee_arg_dict
34
self.desired_shape = desired_shape
35
+ super().__init__()
36
37
def map_subscript(self, expr):
38
if expr.aggregate.name not in self.callee_arg_dict:
@@ -130,6 +131,7 @@ def _shape_1_if_empty(shape_caller, shape_callee):
130
131
class _FunctionCalledChecker(CombineMapper):
132
def __init__(self, func_name):
133
self.func_name = func_name
134
135
136
def combine(self, values):
137
return any(values)
0 commit comments