Aditional functionnalities for torch7 neural networks