ptrblck:

No, Variables are deprecated since PyTorch 0.4.0 , so you can just use tensors in newer versions.


yeah i know  and my study code is based on 0.3.0 now i have not much time to change the version:pleading_face:
i want to know  outside "the for loop "   should the  b1,b2 need be  defined as tensor such as:b1=torch.randn(1,24)
or  just as a local value  in “the for loop”
other question i already know what u mean   so appreciated:kissing_heart: