This version can load weight matrix from file instead of random it.