lua - Torch: luajit out of memory on simple task -


i trying load mnist dataset in th repl , mean subtraction following:

file = torch.load('data/mnist.t7/train_32x32.t7', 'ascii')  data = file.data:type(torch.getdefaulttensortype())  mean = data:mean()  data:add(-mean) 

the last line causes following error:

.../torch/install/bin/luajit: not enough memory

i running on laptop 16gb of ram. mnist has been loaded data not sure why doing data:add(-mean) cause issue. ideas?

thanks

the problem was trying print whole matrix (which large) console.

this can overcome doing either data = data:add(-mean) or data:add(-mean); - notice semicolon

answer provided soumith chintala on torch gitter.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -