@@ -1988,27 +1988,23 @@ def make_thunk(self, **kwargs):
19881988 )
19891989
19901990 def f ():
1991- # strict=False because we are in a hot loop
1992- for input1 , input2 in zip (i1 , i2 , strict = False ):
1991+ # zip strict not specified because we are in a hot loop
1992+ for input1 , input2 in zip (i1 , i2 ):
19931993 # Set the inputs to be the same in both branches.
19941994 # The copy is necessary in order for inplace ops not to
19951995 # interfere.
19961996 input2 .storage [0 ] = copy (input1 .storage [0 ])
1997- for thunk1 , thunk2 , node1 , node2 in zip (
1998- thunks1 , thunks2 , order1 , order2 , strict = False
1999- ):
2000- for output , storage in zip (node1 .outputs , thunk1 .outputs , strict = False ):
1997+ for thunk1 , thunk2 , node1 , node2 in zip (thunks1 , thunks2 , order1 , order2 ):
1998+ for output , storage in zip (node1 .outputs , thunk1 .outputs ):
20011999 if output in no_recycling :
20022000 storage [0 ] = None
2003- for output , storage in zip (node2 .outputs , thunk2 .outputs , strict = False ):
2001+ for output , storage in zip (node2 .outputs , thunk2 .outputs ):
20042002 if output in no_recycling :
20052003 storage [0 ] = None
20062004 try :
20072005 thunk1 ()
20082006 thunk2 ()
2009- for output1 , output2 in zip (
2010- thunk1 .outputs , thunk2 .outputs , strict = False
2011- ):
2007+ for output1 , output2 in zip (thunk1 .outputs , thunk2 .outputs ):
20122008 self .checker (output1 , output2 )
20132009 except Exception :
20142010 raise_with_op (fgraph , node1 )
0 commit comments