Skip to content

Commit bd14d01

Browse files
Use super() in TopoOptimizer and OpKeyOptimizer
1 parent bf1655e commit bd14d01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

theano/gof/opt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,7 +2187,7 @@ def __init__(
21872187
if order not in ["out_to_in", "in_to_out"]:
21882188
raise ValueError("order must be 'out_to_in' or 'in_to_out'")
21892189
self.order = order
2190-
NavigatorOptimizer.__init__(self, local_opt, ignore_newtrees, failure_callback)
2190+
super().__init__(local_opt, ignore_newtrees, failure_callback)
21912191

21922192
def apply(self, fgraph, start_from=None):
21932193
if start_from is None:
@@ -2343,7 +2343,7 @@ def __init__(self, local_opt, ignore_newtrees=False, failure_callback=None):
23432343
raise TypeError(
23442344
"LocalOptimizer for OpKeyOptimizer must have " "an 'op_key' method."
23452345
)
2346-
NavigatorOptimizer.__init__(self, local_opt, ignore_newtrees, failure_callback)
2346+
super().__init__(local_opt, ignore_newtrees, failure_callback)
23472347

23482348
def apply(self, fgraph):
23492349
op = self.local_opt.op_key()

0 commit comments

Comments
 (0)