Added writeForNetsTensor.R