public static final class GraphDef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder> implements GraphDefOrBuilder
Represents the graph of operationsProtobuf type
tensorflow.GraphDef
Modifier and Type | Method and Description |
---|---|
GraphDef.Builder |
addAllNode(Iterable<? extends NodeDef> values)
repeated .tensorflow.NodeDef node = 1; |
GraphDef.Builder |
addNode(int index,
NodeDef.Builder builderForValue)
repeated .tensorflow.NodeDef node = 1; |
GraphDef.Builder |
addNode(int index,
NodeDef value)
repeated .tensorflow.NodeDef node = 1; |
GraphDef.Builder |
addNode(NodeDef.Builder builderForValue)
repeated .tensorflow.NodeDef node = 1; |
GraphDef.Builder |
addNode(NodeDef value)
repeated .tensorflow.NodeDef node = 1; |
NodeDef.Builder |
addNodeBuilder()
repeated .tensorflow.NodeDef node = 1; |
NodeDef.Builder |
addNodeBuilder(int index)
repeated .tensorflow.NodeDef node = 1; |
GraphDef.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GraphDef |
build() |
GraphDef |
buildPartial() |
GraphDef.Builder |
clear() |
GraphDef.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GraphDef.Builder |
clearLibrary()
EXPERIMENTAL.
|
GraphDef.Builder |
clearNode()
repeated .tensorflow.NodeDef node = 1; |
GraphDef.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GraphDef.Builder |
clearVersion()
Deprecated.
|
GraphDef.Builder |
clearVersions()
Compatibility versions of the graph.
|
GraphDef.Builder |
clone() |
GraphDef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
FunctionDefLibrary |
getLibrary()
EXPERIMENTAL.
|
FunctionDefLibrary.Builder |
getLibraryBuilder()
EXPERIMENTAL.
|
FunctionDefLibraryOrBuilder |
getLibraryOrBuilder()
EXPERIMENTAL.
|
NodeDef |
getNode(int index)
repeated .tensorflow.NodeDef node = 1; |
NodeDef.Builder |
getNodeBuilder(int index)
repeated .tensorflow.NodeDef node = 1; |
List<NodeDef.Builder> |
getNodeBuilderList()
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; |
int |
getVersion()
Deprecated.
|
VersionDef |
getVersions()
Compatibility versions of the graph.
|
VersionDef.Builder |
getVersionsBuilder()
Compatibility versions of the graph.
|
VersionDefOrBuilder |
getVersionsOrBuilder()
Compatibility versions of the graph.
|
boolean |
hasLibrary()
EXPERIMENTAL.
|
boolean |
hasVersions()
Compatibility versions of the graph.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GraphDef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GraphDef.Builder |
mergeFrom(GraphDef other) |
GraphDef.Builder |
mergeFrom(com.google.protobuf.Message other) |
GraphDef.Builder |
mergeLibrary(FunctionDefLibrary value)
EXPERIMENTAL.
|
GraphDef.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GraphDef.Builder |
mergeVersions(VersionDef value)
Compatibility versions of the graph.
|
GraphDef.Builder |
removeNode(int index)
repeated .tensorflow.NodeDef node = 1; |
GraphDef.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GraphDef.Builder |
setLibrary(FunctionDefLibrary.Builder builderForValue)
EXPERIMENTAL.
|
GraphDef.Builder |
setLibrary(FunctionDefLibrary value)
EXPERIMENTAL.
|
GraphDef.Builder |
setNode(int index,
NodeDef.Builder builderForValue)
repeated .tensorflow.NodeDef node = 1; |
GraphDef.Builder |
setNode(int index,
NodeDef value)
repeated .tensorflow.NodeDef node = 1; |
GraphDef.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GraphDef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GraphDef.Builder |
setVersion(int value)
Deprecated.
|
GraphDef.Builder |
setVersions(VersionDef.Builder builderForValue)
Compatibility versions of the graph.
|
GraphDef.Builder |
setVersions(VersionDef value)
Compatibility versions of the graph.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public GraphDef.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public GraphDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public GraphDef build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public GraphDef buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public GraphDef.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public GraphDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public GraphDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public GraphDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public GraphDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public GraphDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public GraphDef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GraphDef.Builder>
public GraphDef.Builder mergeFrom(GraphDef other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public GraphDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<GraphDef.Builder>
IOException
public List<NodeDef> getNodeList()
repeated .tensorflow.NodeDef node = 1;
getNodeList
in interface GraphDefOrBuilder
public int getNodeCount()
repeated .tensorflow.NodeDef node = 1;
getNodeCount
in interface GraphDefOrBuilder
public NodeDef getNode(int index)
repeated .tensorflow.NodeDef node = 1;
getNode
in interface GraphDefOrBuilder
public GraphDef.Builder setNode(int index, NodeDef value)
repeated .tensorflow.NodeDef node = 1;
public GraphDef.Builder setNode(int index, NodeDef.Builder builderForValue)
repeated .tensorflow.NodeDef node = 1;
public GraphDef.Builder addNode(NodeDef value)
repeated .tensorflow.NodeDef node = 1;
public GraphDef.Builder addNode(int index, NodeDef value)
repeated .tensorflow.NodeDef node = 1;
public GraphDef.Builder addNode(NodeDef.Builder builderForValue)
repeated .tensorflow.NodeDef node = 1;
public GraphDef.Builder addNode(int index, NodeDef.Builder builderForValue)
repeated .tensorflow.NodeDef node = 1;
public GraphDef.Builder addAllNode(Iterable<? extends NodeDef> values)
repeated .tensorflow.NodeDef node = 1;
public GraphDef.Builder clearNode()
repeated .tensorflow.NodeDef node = 1;
public GraphDef.Builder removeNode(int index)
repeated .tensorflow.NodeDef node = 1;
public NodeDef.Builder getNodeBuilder(int index)
repeated .tensorflow.NodeDef node = 1;
public NodeDefOrBuilder getNodeOrBuilder(int index)
repeated .tensorflow.NodeDef node = 1;
getNodeOrBuilder
in interface GraphDefOrBuilder
public List<? extends NodeDefOrBuilder> getNodeOrBuilderList()
repeated .tensorflow.NodeDef node = 1;
getNodeOrBuilderList
in interface GraphDefOrBuilder
public NodeDef.Builder addNodeBuilder()
repeated .tensorflow.NodeDef node = 1;
public NodeDef.Builder addNodeBuilder(int index)
repeated .tensorflow.NodeDef node = 1;
public List<NodeDef.Builder> getNodeBuilderList()
repeated .tensorflow.NodeDef node = 1;
public 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 GraphDefOrBuilder
public 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 GraphDefOrBuilder
public GraphDef.Builder setVersions(VersionDef value)
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;
public GraphDef.Builder setVersions(VersionDef.Builder builderForValue)
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;
public GraphDef.Builder mergeVersions(VersionDef value)
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;
public GraphDef.Builder clearVersions()
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;
public VersionDef.Builder getVersionsBuilder()
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;
public 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 GraphDefOrBuilder
@Deprecated public GraphDef.Builder setVersion(int value)
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];
@Deprecated public GraphDef.Builder clearVersion()
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];
public 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 GraphDefOrBuilder
public 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 GraphDefOrBuilder
public GraphDef.Builder setLibrary(FunctionDefLibrary value)
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;
public GraphDef.Builder setLibrary(FunctionDefLibrary.Builder builderForValue)
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;
public GraphDef.Builder mergeLibrary(FunctionDefLibrary value)
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;
public GraphDef.Builder clearLibrary()
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;
public FunctionDefLibrary.Builder getLibraryBuilder()
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;
public 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 GraphDefOrBuilder
public final GraphDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
public final GraphDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
Copyright © 2015–2019. All rights reserved.