Hi,
Thank you for replying to me!!
Yes I printed the inputs, targets and outputs inside my loop. The results are:
inputs: [torch.cuda.FloatTensor of size 100x3x32x32 (GPU 0)] (with values 0-255)
targets: [torch.cuda.LongTensor of size 100 (GPU 0)] (with values 0-9)
I also printed what you suggested (training_samples[i]) and the result for i=0 (i checked for other 'i’s as well) for example showed something like this:
(0 ,.,.) =
59   43   50  …   158  152  148
16    0   18  …   123  119  122
25   16   49  …   118  120  109
…         ⋱        …
208  201  198  …   160   56   53
180  173  186  …   184   97   83
177  168  179  …   216  151  123
(1 ,.,.) =
62   46   48  …   132  125  124
20    0    8  …    88   83   87
24    7   27  …    84   84   73
…         ⋱        …
170  153  161  …   133   31   34
139  123  144  …   148   62   53
144  129  142  …   184  118   92
(2 ,.,.) =
63   45   43  …   108  102  103
20    0    0  …    55   50   57
21    0    8  …    50   50   42
…         ⋱        …
96   34   26  …    70    7   20
96   42   30  …    94   34   34
116   94   87  …   140   84   72
[torch.FloatTensor of size 3x32x32]
, 6)
which seems fine.
Is there a possibility that the range 0-255 is inappropriate for pytorch?