onnx.checker#
check_model#
- onnx.checker.check_model(model: Union[ModelProto, str, bytes], full_check: bool = False) None [source]#
Check the consistency of a model. An exception is raised if the test fails.
- Parameters:
model (ModelProto) – model to check
full_check (bool) – if True, the function checks shapes can be inferred