Package org.tensorflow.framework
Class GraphDef.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
- org.tensorflow.framework.GraphDef.Builder
-
- All Implemented Interfaces:
Cloneable,org.nd4j.shade.protobuf.Message.Builder,org.nd4j.shade.protobuf.MessageLite.Builder,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,GraphDefOrBuilder
- Enclosing class:
- GraphDef
public static final class GraphDef.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder> implements GraphDefOrBuilder
Represents the graph of operations
Protobuf typetensorflow.GraphDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GraphDef.BuilderaddAllNode(Iterable<? extends NodeDef> values)repeated .tensorflow.NodeDef node = 1;GraphDef.BuilderaddNode(int index, NodeDef value)repeated .tensorflow.NodeDef node = 1;GraphDef.BuilderaddNode(int index, NodeDef.Builder builderForValue)repeated .tensorflow.NodeDef node = 1;GraphDef.BuilderaddNode(NodeDef value)repeated .tensorflow.NodeDef node = 1;GraphDef.BuilderaddNode(NodeDef.Builder builderForValue)repeated .tensorflow.NodeDef node = 1;NodeDef.BuilderaddNodeBuilder()repeated .tensorflow.NodeDef node = 1;NodeDef.BuilderaddNodeBuilder(int index)repeated .tensorflow.NodeDef node = 1;GraphDef.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)GraphDefbuild()GraphDefbuildPartial()GraphDef.Builderclear()GraphDef.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)GraphDef.BuilderclearLibrary()EXPERIMENTAL.GraphDef.BuilderclearNode()repeated .tensorflow.NodeDef node = 1;GraphDef.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)GraphDef.BuilderclearVersion()Deprecated.tensorflow.GraphDef.version is deprecated.GraphDef.BuilderclearVersions()Compatibility versions of the graph.GraphDef.Builderclone()GraphDefgetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()FunctionDefLibrarygetLibrary()EXPERIMENTAL.FunctionDefLibrary.BuildergetLibraryBuilder()EXPERIMENTAL.FunctionDefLibraryOrBuildergetLibraryOrBuilder()EXPERIMENTAL.NodeDefgetNode(int index)repeated .tensorflow.NodeDef node = 1;NodeDef.BuildergetNodeBuilder(int index)repeated .tensorflow.NodeDef node = 1;List<NodeDef.Builder>getNodeBuilderList()repeated .tensorflow.NodeDef node = 1;intgetNodeCount()repeated .tensorflow.NodeDef node = 1;List<NodeDef>getNodeList()repeated .tensorflow.NodeDef node = 1;NodeDefOrBuildergetNodeOrBuilder(int index)repeated .tensorflow.NodeDef node = 1;List<? extends NodeDefOrBuilder>getNodeOrBuilderList()repeated .tensorflow.NodeDef node = 1;intgetVersion()Deprecated.tensorflow.GraphDef.version is deprecated.VersionDefgetVersions()Compatibility versions of the graph.VersionDef.BuildergetVersionsBuilder()Compatibility versions of the graph.VersionDefOrBuildergetVersionsOrBuilder()Compatibility versions of the graph.booleanhasLibrary()EXPERIMENTAL.booleanhasVersions()Compatibility versions of the graph.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GraphDef.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)GraphDef.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)GraphDef.BuildermergeFrom(GraphDef other)GraphDef.BuildermergeLibrary(FunctionDefLibrary value)EXPERIMENTAL.GraphDef.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)GraphDef.BuildermergeVersions(VersionDef value)Compatibility versions of the graph.GraphDef.BuilderremoveNode(int index)repeated .tensorflow.NodeDef node = 1;GraphDef.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)GraphDef.BuildersetLibrary(FunctionDefLibrary value)EXPERIMENTAL.GraphDef.BuildersetLibrary(FunctionDefLibrary.Builder builderForValue)EXPERIMENTAL.GraphDef.BuildersetNode(int index, NodeDef value)repeated .tensorflow.NodeDef node = 1;GraphDef.BuildersetNode(int index, NodeDef.Builder builderForValue)repeated .tensorflow.NodeDef node = 1;GraphDef.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GraphDef.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)GraphDef.BuildersetVersion(int value)Deprecated.tensorflow.GraphDef.version is deprecated.GraphDef.BuildersetVersions(VersionDef value)Compatibility versions of the graph.GraphDef.BuildersetVersions(VersionDef.Builder builderForValue)Compatibility versions of the graph.-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
clear
public GraphDef.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
getDefaultInstanceForType
public GraphDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public GraphDef build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public GraphDef buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public GraphDef.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
setField
public GraphDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
clearField
public GraphDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
clearOneof
public GraphDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
setRepeatedField
public GraphDef.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
addRepeatedField
public GraphDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
mergeFrom
public GraphDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<GraphDef.Builder>
-
mergeFrom
public GraphDef.Builder mergeFrom(GraphDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
mergeFrom
public GraphDef.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<GraphDef.Builder>- Throws:
IOException
-
getNodeList
public List<NodeDef> getNodeList()
repeated .tensorflow.NodeDef node = 1;- Specified by:
getNodeListin interfaceGraphDefOrBuilder
-
getNodeCount
public int getNodeCount()
repeated .tensorflow.NodeDef node = 1;- Specified by:
getNodeCountin interfaceGraphDefOrBuilder
-
getNode
public NodeDef getNode(int index)
repeated .tensorflow.NodeDef node = 1;- Specified by:
getNodein interfaceGraphDefOrBuilder
-
setNode
public GraphDef.Builder setNode(int index, NodeDef value)
repeated .tensorflow.NodeDef node = 1;
-
setNode
public GraphDef.Builder setNode(int index, NodeDef.Builder builderForValue)
repeated .tensorflow.NodeDef node = 1;
-
addNode
public GraphDef.Builder addNode(NodeDef value)
repeated .tensorflow.NodeDef node = 1;
-
addNode
public GraphDef.Builder addNode(int index, NodeDef value)
repeated .tensorflow.NodeDef node = 1;
-
addNode
public GraphDef.Builder addNode(NodeDef.Builder builderForValue)
repeated .tensorflow.NodeDef node = 1;
-
addNode
public GraphDef.Builder addNode(int index, NodeDef.Builder builderForValue)
repeated .tensorflow.NodeDef node = 1;
-
addAllNode
public GraphDef.Builder addAllNode(Iterable<? extends NodeDef> values)
repeated .tensorflow.NodeDef node = 1;
-
clearNode
public GraphDef.Builder clearNode()
repeated .tensorflow.NodeDef node = 1;
-
removeNode
public GraphDef.Builder removeNode(int index)
repeated .tensorflow.NodeDef node = 1;
-
getNodeBuilder
public NodeDef.Builder getNodeBuilder(int index)
repeated .tensorflow.NodeDef node = 1;
-
getNodeOrBuilder
public NodeDefOrBuilder getNodeOrBuilder(int index)
repeated .tensorflow.NodeDef node = 1;- Specified by:
getNodeOrBuilderin interfaceGraphDefOrBuilder
-
getNodeOrBuilderList
public List<? extends NodeDefOrBuilder> getNodeOrBuilderList()
repeated .tensorflow.NodeDef node = 1;- Specified by:
getNodeOrBuilderListin interfaceGraphDefOrBuilder
-
addNodeBuilder
public NodeDef.Builder addNodeBuilder()
repeated .tensorflow.NodeDef node = 1;
-
addNodeBuilder
public NodeDef.Builder addNodeBuilder(int index)
repeated .tensorflow.NodeDef node = 1;
-
getNodeBuilderList
public List<NodeDef.Builder> getNodeBuilderList()
repeated .tensorflow.NodeDef node = 1;
-
hasVersions
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;- Specified by:
hasVersionsin interfaceGraphDefOrBuilder- Returns:
- Whether the versions field is set.
-
getVersions
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;- Specified by:
getVersionsin interfaceGraphDefOrBuilder- Returns:
- The versions.
-
setVersions
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;
-
setVersions
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;
-
mergeVersions
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;
-
clearVersions
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;
-
getVersionsBuilder
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;
-
getVersionsOrBuilder
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;- Specified by:
getVersionsOrBuilderin interfaceGraphDefOrBuilder
-
getVersion
@Deprecated public int getVersion()
Deprecated.tensorflow.GraphDef.version is deprecated. See tensorflow/core/framework/graph.proto;l=24Deprecated 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];- Specified by:
getVersionin interfaceGraphDefOrBuilder- Returns:
- The version.
-
setVersion
@Deprecated public GraphDef.Builder setVersion(int value)
Deprecated.tensorflow.GraphDef.version is deprecated. See tensorflow/core/framework/graph.proto;l=24Deprecated 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];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
@Deprecated public GraphDef.Builder clearVersion()
Deprecated.tensorflow.GraphDef.version is deprecated. See tensorflow/core/framework/graph.proto;l=24Deprecated 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];- Returns:
- This builder for chaining.
-
hasLibrary
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;- Specified by:
hasLibraryin interfaceGraphDefOrBuilder- Returns:
- Whether the library field is set.
-
getLibrary
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;- Specified by:
getLibraryin interfaceGraphDefOrBuilder- Returns:
- The library.
-
setLibrary
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;
-
setLibrary
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;
-
mergeLibrary
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;
-
clearLibrary
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;
-
getLibraryBuilder
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;
-
getLibraryOrBuilder
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;- Specified by:
getLibraryOrBuilderin interfaceGraphDefOrBuilder
-
setUnknownFields
public final GraphDef.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
mergeUnknownFields
public final GraphDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
-