Open hli2020 opened 8 years ago
If I'm reading correctly:
input
, that points to one image, in the batch.inputs tensorinput
, which is in the batch.inputs tensorinput
reference variable(Edit: actually, input
is not a refernce variable, it's actually a brand-new torch tensor, but that tensor has the exact same underlying storage
as the origianl tensor, and any changes to the data in the input
tensor write through to the exact same storage in the original tensor. this is probably the new information you are looking for?)
Yes, that's right. Perhaps this should have been made more clear with a comment or something: input
refers to the same memory as batch.inputs
, so mutating the values at input
will also propagate to batch.input
Hi G, I am so new to Torch, just a quick concern about fetching training data. The training data is supposed to be normalized, too. However, I see no such operation in the
dataTrain:getBatch()
call. Specifically, the code here does not passinput
value back tobatch
. Can you point out where I misunderstood? Thanks!