Package org.platanios.tensorflow.proto
Class GraphDef.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
- org.platanios.tensorflow.proto.GraphDef.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,GraphDefOrBuilder
- Enclosing class:
- GraphDef
public static final class GraphDef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder> implements GraphDefOrBuilder
Represents the graph of operations
Protobuf typeorg.platanios.tensorflow.proto.GraphDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GraphDef.Builder
addAllNode(java.lang.Iterable<? extends NodeDef> values)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
GraphDef.Builder
addNode(int index, NodeDef value)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
GraphDef.Builder
addNode(int index, NodeDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
GraphDef.Builder
addNode(NodeDef value)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
GraphDef.Builder
addNode(NodeDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
NodeDef.Builder
addNodeBuilder()
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
NodeDef.Builder
addNodeBuilder(int index)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
GraphDef.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.NodeDef node = 1;
NodeDef.Builder
getNodeBuilder(int index)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
java.util.List<NodeDef.Builder>
getNodeBuilderList()
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
int
getNodeCount()
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
java.util.List<NodeDef>
getNodeList()
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
NodeDefOrBuilder
getNodeOrBuilder(int index)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
java.util.List<? extends NodeDefOrBuilder>
getNodeOrBuilderList()
repeated .org.platanios.tensorflow.proto.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(com.google.protobuf.Message other)
GraphDef.Builder
mergeFrom(GraphDef 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 .org.platanios.tensorflow.proto.NodeDef node = 1;
GraphDef.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
GraphDef.Builder
setLibrary(FunctionDefLibrary value)
EXPERIMENTAL.GraphDef.Builder
setLibrary(FunctionDefLibrary.Builder builderForValue)
EXPERIMENTAL.GraphDef.Builder
setNode(int index, NodeDef value)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
GraphDef.Builder
setNode(int index, NodeDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
GraphDef.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
GraphDef.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GraphDef.Builder
setVersion(int value)
Deprecated.GraphDef.Builder
setVersions(VersionDef value)
Compatibility versions of the graph.GraphDef.Builder
setVersions(VersionDef.Builder builderForValue)
Compatibility versions of the graph.-
Methods inherited from class com.google.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 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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.Builder<GraphDef.Builder>
-
clear
public GraphDef.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
getDefaultInstanceForType
public GraphDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GraphDef build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GraphDef buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GraphDef.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
setField
public GraphDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
clearField
public GraphDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
clearOneof
public GraphDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
setRepeatedField
public GraphDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
addRepeatedField
public GraphDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
mergeFrom
public GraphDef.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GraphDef.Builder>
-
mergeFrom
public GraphDef.Builder mergeFrom(GraphDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
mergeFrom
public GraphDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GraphDef.Builder>
- Throws:
java.io.IOException
-
getNodeList
public java.util.List<NodeDef> getNodeList()
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
- Specified by:
getNodeList
in interfaceGraphDefOrBuilder
-
getNodeCount
public int getNodeCount()
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
- Specified by:
getNodeCount
in interfaceGraphDefOrBuilder
-
getNode
public NodeDef getNode(int index)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
- Specified by:
getNode
in interfaceGraphDefOrBuilder
-
setNode
public GraphDef.Builder setNode(int index, NodeDef value)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
setNode
public GraphDef.Builder setNode(int index, NodeDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
addNode
public GraphDef.Builder addNode(NodeDef value)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
addNode
public GraphDef.Builder addNode(int index, NodeDef value)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
addNode
public GraphDef.Builder addNode(NodeDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
addNode
public GraphDef.Builder addNode(int index, NodeDef.Builder builderForValue)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
addAllNode
public GraphDef.Builder addAllNode(java.lang.Iterable<? extends NodeDef> values)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
clearNode
public GraphDef.Builder clearNode()
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
removeNode
public GraphDef.Builder removeNode(int index)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
getNodeBuilder
public NodeDef.Builder getNodeBuilder(int index)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
getNodeOrBuilder
public NodeDefOrBuilder getNodeOrBuilder(int index)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
- Specified by:
getNodeOrBuilder
in interfaceGraphDefOrBuilder
-
getNodeOrBuilderList
public java.util.List<? extends NodeDefOrBuilder> getNodeOrBuilderList()
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
- Specified by:
getNodeOrBuilderList
in interfaceGraphDefOrBuilder
-
addNodeBuilder
public NodeDef.Builder addNodeBuilder()
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
addNodeBuilder
public NodeDef.Builder addNodeBuilder(int index)
repeated .org.platanios.tensorflow.proto.NodeDef node = 1;
-
getNodeBuilderList
public java.util.List<NodeDef.Builder> getNodeBuilderList()
repeated .org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.VersionDef versions = 4;
- Specified by:
hasVersions
in 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.
.org.platanios.tensorflow.proto.VersionDef versions = 4;
- Specified by:
getVersions
in 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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.VersionDef versions = 4;
- Specified by:
getVersionsOrBuilder
in interfaceGraphDefOrBuilder
-
getVersion
@Deprecated public int getVersion()
Deprecated.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];
- Specified by:
getVersion
in interfaceGraphDefOrBuilder
- Returns:
- The version.
-
setVersion
@Deprecated public GraphDef.Builder setVersion(int value)
Deprecated.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];
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
@Deprecated public GraphDef.Builder clearVersion()
Deprecated.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];
- 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.
.org.platanios.tensorflow.proto.FunctionDefLibrary library = 2;
- Specified by:
hasLibrary
in 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.
.org.platanios.tensorflow.proto.FunctionDefLibrary library = 2;
- Specified by:
getLibrary
in 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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.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.
.org.platanios.tensorflow.proto.FunctionDefLibrary library = 2;
- Specified by:
getLibraryOrBuilder
in interfaceGraphDefOrBuilder
-
setUnknownFields
public final GraphDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
mergeUnknownFields
public final GraphDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GraphDef.Builder>
-
-