-
Notifications
You must be signed in to change notification settings - Fork 24
How can I get the FloatTensor values instead of the binary content when using IndexDirectory.lua ? #34
Comments
Use a processor function as an option to the sampledBatcher. That function Generally, you shouldn't really ever have to mess with the getter On Thursday, May 19, 2016, Chien-Lin Huang 黃建霖 notifications@github.com
|
Hi Zak, You are right. I can use torch.deserialize to get FloatTensor values. However, it cannot control the inputDims when using IndexDirectory.lua. For example, I have a lot files with the size of {2000, 600} and would like to read it in {600} like
But, I will get a whole FloatTensor {2000, 600} instead of the size of {600}. Do you have any idea about this? Thank you, |
Hi,
I have a bunch of files on the local disk and just want to construct an Index/Dataset based on all the files that are present. IndexDirectory.lua supports this, but I need to modify Reader.lua in line:77, res[i] = torch.load(item.url) to make it works. The reason why did I modify line:77 is that the return value is the binary content instead of Torch FloatTensor using IndexDirectory.lua. How can I have the return value like IndexTensor.lua when using IndexDirectory.lua?
Thank you
The text was updated successfully, but these errors were encountered: