This method checks whether a protobuf in a particular type is valid.
check(proto, ir_version) # S3 method for onnx_pb2.ModelProto check(proto, ir_version = 3L) # S3 method for onnx_pb2.GraphProto check(proto, ir_version = 3L) # S3 method for onnx_pb2.TensorProto check(proto, ir_version = 3L) # S3 method for onnx_pb2.AttributeProto check(proto, ir_version = 3L) # S3 method for onnx_pb2.NodeProto check(proto, ir_version = 3L)
proto | The proto |
---|---|
ir_version | The version of the proto |