Hi Sebastien!



 sebastienwood:

Pytorch code get executed before this simple statement, even though they are declared in the right order,


Could you simplify and trim down your code as much as possible
while still having it display this behavior?  Then post a self-contained,
runnable script so that we can try to reproduce your issue.  Also, do
tell us what version of pytorch you are using.  For example, you can
include print (torch.__version__) in your script.
Good luck.
K. Frank