How to set cache settings while using h5py high level interface?

前端 未结 3 1638
忘掉有多难
忘掉有多难 2020-12-17 04:36

I\'m trying to increase cache size for my HDF5 files, but it doesn\'t seem to be working. This is what I have:

import h5py

with h5py.File(\"test.h5\", \'w\'         


        
3条回答
  •  隐瞒了意图╮
    2020-12-17 04:56

    The h5py-cache project might be helpful, although I haven't used it:

    import h5py_cache
    with h5py_cache.File('test.h5', chunk_cache_mem_size=1024**3, 'a') as f:
    f.create_dataset(...)
    

提交回复
热议问题