senarvi / theanolm

TheanoLM is a recurrent neural network language modeling tool implemented using Theano

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate from .npz to HDF5

senarvi opened this issue · comments

import h5py

h5f = h5py.File(filename, 'w')
h5f.create_dataset('x', data=x)
h5f.close()

h5f = h5py.File(filename, 'r')
x = h5f['x'][:]
h5f.close()