checker: Check Whether The Proto is Valid

Description Usage Arguments Examples

Description

This method checks whether a protobuf in a particular type is valid.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
check(proto, ir_version)

## S3 method for class 'onnx_pb2.ModelProto'
check(proto, ir_version = 3L)

## S3 method for class 'onnx_pb2.GraphProto'
check(proto, ir_version = 3L)

## S3 method for class 'onnx_pb2.TensorProto'
check(proto, ir_version = 3L)

## S3 method for class 'onnx_pb2.AttributeProto'
check(proto, ir_version = 3L)

## S3 method for class 'onnx_pb2.NodeProto'
check(proto, ir_version = 3L)

Arguments

proto

The proto

ir_version

The version of the proto

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

library(onnx)

# Define a node protobuf and check whether it's valid
node_def <- make_node("Relu", list("X"), list("Y"))
check(node_def)


## End(Not run)

onnx documentation built on April 17, 2021, 1:07 a.m.