@@ -1993,25 +1993,26 @@ def make_thunk(self, **kwargs):
19931993 )
19941994
19951995 def f ():
1996- for input1 , input2 in zip (i1 , i2 , strict = True ):
1996+ # strict=False because we are in a hot loop
1997+ for input1 , input2 in zip (i1 , i2 , strict = False ):
19971998 # Set the inputs to be the same in both branches.
19981999 # The copy is necessary in order for inplace ops not to
19992000 # interfere.
20002001 input2 .storage [0 ] = copy (input1 .storage [0 ])
20012002 for thunk1 , thunk2 , node1 , node2 in zip (
2002- thunks1 , thunks2 , order1 , order2 , strict = True
2003+ thunks1 , thunks2 , order1 , order2 , strict = False
20032004 ):
2004- for output , storage in zip (node1 .outputs , thunk1 .outputs , strict = True ):
2005+ for output , storage in zip (node1 .outputs , thunk1 .outputs , strict = False ):
20052006 if output in no_recycling :
20062007 storage [0 ] = None
2007- for output , storage in zip (node2 .outputs , thunk2 .outputs , strict = True ):
2008+ for output , storage in zip (node2 .outputs , thunk2 .outputs , strict = False ):
20082009 if output in no_recycling :
20092010 storage [0 ] = None
20102011 try :
20112012 thunk1 ()
20122013 thunk2 ()
20132014 for output1 , output2 in zip (
2014- thunk1 .outputs , thunk2 .outputs , strict = True
2015+ thunk1 .outputs , thunk2 .outputs , strict = False
20152016 ):
20162017 self .checker (output1 , output2 )
20172018 except Exception :
0 commit comments