@@ -1988,27 +1988,23 @@ def make_thunk(self, **kwargs):
1988
1988
)
1989
1989
1990
1990
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 ):
1993
1993
# Set the inputs to be the same in both branches.
1994
1994
# The copy is necessary in order for inplace ops not to
1995
1995
# interfere.
1996
1996
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 ):
2001
1999
if output in no_recycling :
2002
2000
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 ):
2004
2002
if output in no_recycling :
2005
2003
storage [0 ] = None
2006
2004
try :
2007
2005
thunk1 ()
2008
2006
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 ):
2012
2008
self .checker (output1 , output2 )
2013
2009
except Exception :
2014
2010
raise_with_op (fgraph , node1 )
0 commit comments