Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrinkiani committed Nov 30, 2023
1 parent f96a1e0 commit f06cee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modelscan/models/h5/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _get_keras_h5_operator_names(source: Union[str, Path]) -> List[str]:
# Todo: source isn't guaranteed to be a file
with h5py.File(source, "r") as model_hdf5:
try:
model_config = json.loads(model_hdf5.attrs.get("model_config",{}))
model_config = json.loads(model_hdf5.attrs.get("model_config", {}))
layers = model_config.get("config", {}).get("layers", {})
lambda_layers = []
for layer in layers:
Expand Down

0 comments on commit f06cee5

Please sign in to comment.