reorganization
This commit is contained in:
@@ -20,6 +20,7 @@ def inspect_onnx_metadata(path: str | Path) -> dict[str, Any]:
|
||||
|
||||
try:
|
||||
model = onnx.load(str(path))
|
||||
onnx.checker.check_model(model)
|
||||
except Exception as exc:
|
||||
raise ValueError(f"no es un modelo ONNX válido: {exc}") from exc
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user