public final class GraphDef extends com.google.protobuf.GeneratedMessageV3 implements GraphDefOrBuilder
Represents the graph of operationsProtobuf type
tensorflow.GraphDef| Modifier and Type | Class and Description |
|---|---|
static class |
GraphDef.Builder
Represents the graph of operations
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
LIBRARY_FIELD_NUMBER |
static int |
NODE_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
static int |
VERSIONS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static GraphDef |
getDefaultInstance() |
GraphDef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
FunctionDefLibrary |
getLibrary()
EXPERIMENTAL.
|
FunctionDefLibraryOrBuilder |
getLibraryOrBuilder()
EXPERIMENTAL.
|
NodeDef |
getNode(int index)
repeated .tensorflow.NodeDef node = 1; |
int |
getNodeCount()
repeated .tensorflow.NodeDef node = 1; |
List<NodeDef> |
getNodeList()
repeated .tensorflow.NodeDef node = 1; |
NodeDefOrBuilder |
getNodeOrBuilder(int index)
repeated .tensorflow.NodeDef node = 1; |
List<? extends NodeDefOrBuilder> |
getNodeOrBuilderList()
repeated .tensorflow.NodeDef node = 1; |
com.google.protobuf.Parser<GraphDef> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getVersion()
Deprecated.
|
VersionDef |
getVersions()
Compatibility versions of the graph.
|
VersionDefOrBuilder |
getVersionsOrBuilder()
Compatibility versions of the graph.
|
int |
hashCode() |
boolean |
hasLibrary()
EXPERIMENTAL.
|
boolean |
hasVersions()
Compatibility versions of the graph.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GraphDef.Builder |
newBuilder() |
static GraphDef.Builder |
newBuilder(GraphDef prototype) |
GraphDef.Builder |
newBuilderForType() |
protected GraphDef.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static GraphDef |
parseDelimitedFrom(InputStream input) |
static GraphDef |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(byte[] data) |
static GraphDef |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(ByteBuffer data) |
static GraphDef |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(com.google.protobuf.ByteString data) |
static GraphDef |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GraphDef |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(InputStream input) |
static GraphDef |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GraphDef> |
parser() |
GraphDef.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NODE_FIELD_NUMBER
public static final int VERSIONS_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int LIBRARY_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<NodeDef> getNodeList()
repeated .tensorflow.NodeDef node = 1;getNodeList in interface GraphDefOrBuilderpublic List<? extends NodeDefOrBuilder> getNodeOrBuilderList()
repeated .tensorflow.NodeDef node = 1;getNodeOrBuilderList in interface GraphDefOrBuilderpublic int getNodeCount()
repeated .tensorflow.NodeDef node = 1;getNodeCount in interface GraphDefOrBuilderpublic NodeDef getNode(int index)
repeated .tensorflow.NodeDef node = 1;getNode in interface GraphDefOrBuilderpublic NodeDefOrBuilder getNodeOrBuilder(int index)
repeated .tensorflow.NodeDef node = 1;getNodeOrBuilder in interface GraphDefOrBuilderpublic boolean hasVersions()
Compatibility versions of the graph. See core/public/version.h for version history. The GraphDef version is distinct from the TensorFlow version, and each release of TensorFlow will support a range of GraphDef versions.
.tensorflow.VersionDef versions = 4;hasVersions in interface GraphDefOrBuilderpublic VersionDef getVersions()
Compatibility versions of the graph. See core/public/version.h for version history. The GraphDef version is distinct from the TensorFlow version, and each release of TensorFlow will support a range of GraphDef versions.
.tensorflow.VersionDef versions = 4;getVersions in interface GraphDefOrBuilderpublic VersionDefOrBuilder getVersionsOrBuilder()
Compatibility versions of the graph. See core/public/version.h for version history. The GraphDef version is distinct from the TensorFlow version, and each release of TensorFlow will support a range of GraphDef versions.
.tensorflow.VersionDef versions = 4;getVersionsOrBuilder in interface GraphDefOrBuilder@Deprecated public int getVersion()
Deprecated single version field; use versions above instead. Since all GraphDef changes before "versions" was introduced were forward compatible, this field is entirely ignored.
int32 version = 3 [deprecated = true];getVersion in interface GraphDefOrBuilderpublic boolean hasLibrary()
EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
"library" provides user-defined functions.
Naming:
* library.function.name are in a flat namespace.
NOTE: We may need to change it to be hierarchical to support
different orgs. E.g.,
{ "/google/nn", { ... }},
{ "/google/vision", { ... }}
{ "/org_foo/module_bar", { ... }}
map<string, FunctionDefLib> named_lib;
* If node[i].op is the name of one function in "library",
node[i] is deemed as a function call. Otherwise, node[i].op
must be a primitive operation supported by the runtime.
Function call semantics:
* The callee may start execution as soon as some of its inputs
are ready. The caller may want to use Tuple() mechanism to
ensure all inputs are ready in the same time.
* The consumer of return values may start executing as soon as
the return values the consumer depends on are ready. The
consumer may want to use Tuple() mechanism to ensure the
consumer does not start until all return values of the callee
function are ready.
.tensorflow.FunctionDefLibrary library = 2;hasLibrary in interface GraphDefOrBuilderpublic FunctionDefLibrary getLibrary()
EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
"library" provides user-defined functions.
Naming:
* library.function.name are in a flat namespace.
NOTE: We may need to change it to be hierarchical to support
different orgs. E.g.,
{ "/google/nn", { ... }},
{ "/google/vision", { ... }}
{ "/org_foo/module_bar", { ... }}
map<string, FunctionDefLib> named_lib;
* If node[i].op is the name of one function in "library",
node[i] is deemed as a function call. Otherwise, node[i].op
must be a primitive operation supported by the runtime.
Function call semantics:
* The callee may start execution as soon as some of its inputs
are ready. The caller may want to use Tuple() mechanism to
ensure all inputs are ready in the same time.
* The consumer of return values may start executing as soon as
the return values the consumer depends on are ready. The
consumer may want to use Tuple() mechanism to ensure the
consumer does not start until all return values of the callee
function are ready.
.tensorflow.FunctionDefLibrary library = 2;getLibrary in interface GraphDefOrBuilderpublic FunctionDefLibraryOrBuilder getLibraryOrBuilder()
EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.
"library" provides user-defined functions.
Naming:
* library.function.name are in a flat namespace.
NOTE: We may need to change it to be hierarchical to support
different orgs. E.g.,
{ "/google/nn", { ... }},
{ "/google/vision", { ... }}
{ "/org_foo/module_bar", { ... }}
map<string, FunctionDefLib> named_lib;
* If node[i].op is the name of one function in "library",
node[i] is deemed as a function call. Otherwise, node[i].op
must be a primitive operation supported by the runtime.
Function call semantics:
* The callee may start execution as soon as some of its inputs
are ready. The caller may want to use Tuple() mechanism to
ensure all inputs are ready in the same time.
* The consumer of return values may start executing as soon as
the return values the consumer depends on are ready. The
consumer may want to use Tuple() mechanism to ensure the
consumer does not start until all return values of the callee
function are ready.
.tensorflow.FunctionDefLibrary library = 2;getLibraryOrBuilder in interface GraphDefOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GraphDef parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(InputStream input) throws IOException
IOExceptionpublic static GraphDef parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GraphDef parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GraphDef parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GraphDef parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GraphDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GraphDef.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GraphDef.Builder newBuilder()
public static GraphDef.Builder newBuilder(GraphDef prototype)
public GraphDef.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GraphDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GraphDef getDefaultInstance()
public static com.google.protobuf.Parser<GraphDef> parser()
public com.google.protobuf.Parser<GraphDef> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GraphDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2015–2019. All rights reserved.