Package onnx
Class Onnx.GraphProto
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
onnx.Onnx.GraphProto
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
,Onnx.GraphProtoOrBuilder
- Enclosing class:
- Onnx
public static final class Onnx.GraphProto
extends com.google.protobuf.GeneratedMessageV3
implements Onnx.GraphProtoOrBuilder
Graphs A graph defines the computational logic of a model and is comprised of a parameterized list of nodes that form a directed acyclic graph based on their inputs and outputs. This is the equivalent of the "network" or "graph" in many deep learning frameworks.Protobuf type
onnx.GraphProto
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Graphs A graph defines the computational logic of a model and is comprised of a parameterized list of nodes that form a directed acyclic graph based on their inputs and outputs.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,
BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final com.google.protobuf.Parser<Onnx.GraphProto>
Deprecated.static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Onnx.GraphProto
static final com.google.protobuf.Descriptors.Descriptor
A human-readable documentation for this graph.com.google.protobuf.ByteString
A human-readable documentation for this graph.getInitializer
(int index) A list of named tensor values, used to specify constant inputs of the graph.int
A list of named tensor values, used to specify constant inputs of the graph.A list of named tensor values, used to specify constant inputs of the graph.getInitializerOrBuilder
(int index) A list of named tensor values, used to specify constant inputs of the graph.List<? extends Onnx.TensorProtoOrBuilder>
A list of named tensor values, used to specify constant inputs of the graph.getInput
(int index) The inputs and outputs of the graph.int
The inputs and outputs of the graph.The inputs and outputs of the graph.getInputOrBuilder
(int index) The inputs and outputs of the graph.List<? extends Onnx.ValueInfoProtoOrBuilder>
The inputs and outputs of the graph.getName()
The name of the graph.com.google.protobuf.ByteString
The name of the graph.getNode
(int index) The nodes in the graph, sorted topologically.int
The nodes in the graph, sorted topologically.The nodes in the graph, sorted topologically.getNodeOrBuilder
(int index) The nodes in the graph, sorted topologically.List<? extends Onnx.NodeProtoOrBuilder>
The nodes in the graph, sorted topologically.getOutput
(int index) repeated .onnx.ValueInfoProto output = 12;
int
repeated .onnx.ValueInfoProto output = 12;
repeated .onnx.ValueInfoProto output = 12;
getOutputOrBuilder
(int index) repeated .onnx.ValueInfoProto output = 12;
List<? extends Onnx.ValueInfoProtoOrBuilder>
repeated .onnx.ValueInfoProto output = 12;
com.google.protobuf.Parser<Onnx.GraphProto>
int
final com.google.protobuf.UnknownFieldSet
getValueInfo
(int index) Information for the values in the graph.int
Information for the values in the graph.Information for the values in the graph.getValueInfoOrBuilder
(int index) Information for the values in the graph.List<? extends Onnx.ValueInfoProtoOrBuilder>
Information for the values in the graph.boolean
A human-readable documentation for this graph.int
hashCode()
boolean
hasName()
The name of the graph.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
static Onnx.GraphProto.Builder
static Onnx.GraphProto.Builder
newBuilder
(Onnx.GraphProto prototype) protected Onnx.GraphProto.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Onnx.GraphProto
parseDelimitedFrom
(InputStream input) static Onnx.GraphProto
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.GraphProto
parseFrom
(byte[] data) static Onnx.GraphProto
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.GraphProto
parseFrom
(com.google.protobuf.ByteString data) static Onnx.GraphProto
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.GraphProto
parseFrom
(com.google.protobuf.CodedInputStream input) static Onnx.GraphProto
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.GraphProto
parseFrom
(InputStream input) static Onnx.GraphProto
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Onnx.GraphProto
parseFrom
(ByteBuffer data) static Onnx.GraphProto
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Onnx.GraphProto>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
NODE_FIELD_NUMBER
public static final int NODE_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
INITIALIZER_FIELD_NUMBER
public static final int INITIALIZER_FIELD_NUMBER- See Also:
-
DOC_STRING_FIELD_NUMBER
public static final int DOC_STRING_FIELD_NUMBER- See Also:
-
INPUT_FIELD_NUMBER
public static final int INPUT_FIELD_NUMBER- See Also:
-
OUTPUT_FIELD_NUMBER
public static final int OUTPUT_FIELD_NUMBER- See Also:
-
VALUE_INFO_FIELD_NUMBER
public static final int VALUE_INFO_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getNodeList
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeList
in interfaceOnnx.GraphProtoOrBuilder
-
getNodeOrBuilderList
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
getNodeCount
public int getNodeCount()The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeCount
in interfaceOnnx.GraphProtoOrBuilder
-
getNode
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNode
in interfaceOnnx.GraphProtoOrBuilder
-
getNodeOrBuilder
The nodes in the graph, sorted topologically.
repeated .onnx.NodeProto node = 1;
- Specified by:
getNodeOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
hasName
public boolean hasName()The name of the graph.
optional string name = 2;
- Specified by:
hasName
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
The name of the graph.
optional string name = 2;
- Specified by:
getName
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the graph.
optional string name = 2;
- Specified by:
getNameBytes
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- The bytes for name.
-
getInitializerList
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerList
in interfaceOnnx.GraphProtoOrBuilder
-
getInitializerOrBuilderList
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
getInitializerCount
public int getInitializerCount()A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerCount
in interfaceOnnx.GraphProtoOrBuilder
-
getInitializer
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializer
in interfaceOnnx.GraphProtoOrBuilder
-
getInitializerOrBuilder
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that also appears in the input list.
repeated .onnx.TensorProto initializer = 5;
- Specified by:
getInitializerOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
hasDocString
public boolean hasDocString()A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Specified by:
hasDocString
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- Whether the docString field is set.
-
getDocString
A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Specified by:
getDocString
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- The docString.
-
getDocStringBytes
public com.google.protobuf.ByteString getDocStringBytes()A human-readable documentation for this graph. Markdown is allowed.
optional string doc_string = 10;
- Specified by:
getDocStringBytes
in interfaceOnnx.GraphProtoOrBuilder
- Returns:
- The bytes for docString.
-
getInputList
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputList
in interfaceOnnx.GraphProtoOrBuilder
-
getInputOrBuilderList
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
getInputCount
public int getInputCount()The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputCount
in interfaceOnnx.GraphProtoOrBuilder
-
getInput
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInput
in interfaceOnnx.GraphProtoOrBuilder
-
getInputOrBuilder
The inputs and outputs of the graph.
repeated .onnx.ValueInfoProto input = 11;
- Specified by:
getInputOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
getOutputList
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputList
in interfaceOnnx.GraphProtoOrBuilder
-
getOutputOrBuilderList
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
getOutputCount
public int getOutputCount()repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputCount
in interfaceOnnx.GraphProtoOrBuilder
-
getOutput
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutput
in interfaceOnnx.GraphProtoOrBuilder
-
getOutputOrBuilder
repeated .onnx.ValueInfoProto output = 12;
- Specified by:
getOutputOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
getValueInfoList
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoList
in interfaceOnnx.GraphProtoOrBuilder
-
getValueInfoOrBuilderList
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoOrBuilderList
in interfaceOnnx.GraphProtoOrBuilder
-
getValueInfoCount
public int getValueInfoCount()Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoCount
in interfaceOnnx.GraphProtoOrBuilder
-
getValueInfo
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfo
in interfaceOnnx.GraphProtoOrBuilder
-
getValueInfoOrBuilder
Information for the values in the graph. The ValueInfoProto.name's must be distinct. It is optional for a value to appear in value_info list.
repeated .onnx.ValueInfoProto value_info = 13;
- Specified by:
getValueInfoOrBuilder
in interfaceOnnx.GraphProtoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Onnx.GraphProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.GraphProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.GraphProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.GraphProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.GraphProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Onnx.GraphProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Onnx.GraphProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Onnx.GraphProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Onnx.GraphProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Onnx.GraphProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Onnx.GraphProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-