I am facing problems with saving the training weight (W) for MNIST tensorflow example as described here. MNIST tensorflow. If my understanding is correct, we need the training weight in future for other testing cases (not the MNIST testing case). I tried print W.eval() to get the weight; but it happens to provide me with a zero matrix of 784x10. How can I get the weights in an array form or in .csv format (not .cpkt)?