for k in range(0,shape[2]):
for l in range(0,shape[3]):
for m in range(0,shape[4]):
f["volume/data"][i,j,k,l,m] = i + j + k + l + m
f.close()
// Read the entire HDF5 file and verify the contents
After Change
with h5py.File(self.testH5FileName) as f:
f.create_group("volume")
shape = (1,2,3,4,5)
f["volume"].create_dataset("data", data=numpy.indices(shape).sum(0).astype(numpy.float32))
// Read the entire HDF5 file and verify the contents
h5Reader = OpInputDataReader(graph=self.graph)