Skip to content
Snippets Groups Projects
Commit 2ea942ee authored by Andi Gerken's avatar Andi Gerken
Browse files

Added backward compatability w v110 version of HDF5 for compatability with tensorflow

parent 57358b90
No related branches found
No related tags found
No related merge requests found
Pipeline #36072 passed
...@@ -91,7 +91,7 @@ class File(h5py.File): ...@@ -91,7 +91,7 @@ class File(h5py.File):
mode="x", mode="x",
driver="core", driver="core",
backing_store=True, backing_store=True,
libver=("earliest", "v112"), libver=("earliest", "v110"),
) )
initialize = True initialize = True
else: else:
...@@ -103,7 +103,7 @@ class File(h5py.File): ...@@ -103,7 +103,7 @@ class File(h5py.File):
# a Read/write if exists, create otherwise # a Read/write if exists, create otherwise
logging.info(f"Opening File {path}") logging.info(f"Opening File {path}")
initialize = not Path(path).exists() initialize = not Path(path).exists()
super().__init__(path, mode, libver=("earliest", "v112")) super().__init__(path, mode, libver=("earliest", "v110"))
if initialize: if initialize:
assert world_size_cm is not None and format_version is not None assert world_size_cm is not None and format_version is not None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment