Retaining loaded data in torch/lua.

21 views
Skip to first unread message

Siddharth Gee

unread,
Mar 26, 2015, 4:42:29 PM3/26/15
to tor...@googlegroups.com
Hi everyone,

I'm new to torch, but I've worked on Octave before, and it automatically saves the datasets which I load, so that every time I run an algorithm on that, I don't need to load it again. How is this done in torch? I'm wasting a lot of time loading my data every time I fix a bug. 

Thank you 

soumith

unread,
Mar 26, 2015, 5:28:07 PM3/26/15
to torch7 on behalf of Siddharth Gee
torch.save(filename, variablename)

and then
variablename = torch.load(filename)

--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at http://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages