public final class GraphDef extends org.nd4j.shade.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
|
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 org.nd4j.shade.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; |
org.nd4j.shade.protobuf.Parser<GraphDef> |
getParserForType() |
int |
getSerializedSize() |
org.nd4j.shade.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 org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GraphDef.Builder |
newBuilder() |
static GraphDef.Builder |
newBuilder(GraphDef prototype) |
GraphDef.Builder |
newBuilderForType() |
protected GraphDef.Builder |
newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static GraphDef |
parseDelimitedFrom(InputStream input) |
static GraphDef |
parseDelimitedFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(byte[] data) |
static GraphDef |
parseFrom(byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(ByteBuffer data) |
static GraphDef |
parseFrom(ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(org.nd4j.shade.protobuf.ByteString data) |
static GraphDef |
parseFrom(org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) |
static GraphDef |
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static GraphDef |
parseFrom(InputStream input) |
static GraphDef |
parseFrom(InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
static org.nd4j.shade.protobuf.Parser<GraphDef> |
parser() |
GraphDef.Builder |
toBuilder() |
void |
writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, 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
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class org.nd4j.shade.protobuf.GeneratedMessageV3public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface org.nd4j.shade.protobuf.MessageOrBuildergetUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class org.nd4j.shade.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 org.nd4j.shade.protobuf.MessageLiteOrBuilderisInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface org.nd4j.shade.protobuf.MessageLitewriteTo in class org.nd4j.shade.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface org.nd4j.shade.protobuf.MessageLitegetSerializedSize in class org.nd4j.shade.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface org.nd4j.shade.protobuf.Messageequals in class org.nd4j.shade.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface org.nd4j.shade.protobuf.MessagehashCode in class org.nd4j.shade.protobuf.AbstractMessagepublic static GraphDef parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
org.nd4j.shade.protobuf.InvalidProtocolBufferExceptionpublic static GraphDef parseFrom(InputStream input) throws IOException
IOExceptionpublic static GraphDef parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GraphDef parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GraphDef parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GraphDef parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GraphDef parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GraphDef.Builder newBuilderForType()
newBuilderForType in interface org.nd4j.shade.protobuf.MessagenewBuilderForType in interface org.nd4j.shade.protobuf.MessageLitepublic static GraphDef.Builder newBuilder()
public static GraphDef.Builder newBuilder(GraphDef prototype)
public GraphDef.Builder toBuilder()
toBuilder in interface org.nd4j.shade.protobuf.MessagetoBuilder in interface org.nd4j.shade.protobuf.MessageLiteprotected GraphDef.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public static GraphDef getDefaultInstance()
public static org.nd4j.shade.protobuf.Parser<GraphDef> parser()
public org.nd4j.shade.protobuf.Parser<GraphDef> getParserForType()
getParserForType in interface org.nd4j.shade.protobuf.MessagegetParserForType in interface org.nd4j.shade.protobuf.MessageLitegetParserForType in class org.nd4j.shade.protobuf.GeneratedMessageV3public GraphDef getDefaultInstanceForType()
getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilderCopyright © 2022. All rights reserved.