replace resizeAs(tensor) calls with resize(tensor:size()) calls since resizeAs expects same type tensor.
Merge branch 'master' of github.com:clementfarabet/lua---image