Package org.tensorflow.framework
Interface GraphDefOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GraphDef,GraphDef.Builder
public interface GraphDefOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionStack traces for the nodes in this graph.Stack traces for the nodes in this graph."library" provides user-defined functions."library" provides user-defined functions.getNode(int index) repeated .tensorflow.NodeDef node = 1;intrepeated .tensorflow.NodeDef node = 1;repeated .tensorflow.NodeDef node = 1;getNodeOrBuilder(int index) repeated .tensorflow.NodeDef node = 1;List<? extends NodeDefOrBuilder> repeated .tensorflow.NodeDef node = 1;intDeprecated.tensorflow.GraphDef.version is deprecated.Compatibility versions of the graph.Compatibility versions of the graph.booleanStack traces for the nodes in this graph.boolean"library" provides user-defined functions.booleanCompatibility versions of the graph.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getNodeList
repeated .tensorflow.NodeDef node = 1; -
getNode
repeated .tensorflow.NodeDef node = 1; -
getNodeCount
int getNodeCount()repeated .tensorflow.NodeDef node = 1; -
getNodeOrBuilderList
List<? extends NodeDefOrBuilder> getNodeOrBuilderList()repeated .tensorflow.NodeDef node = 1; -
getNodeOrBuilder
repeated .tensorflow.NodeDef node = 1; -
hasVersions
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;- Returns:
- Whether the versions field is set.
-
getVersions
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;- Returns:
- The versions.
-
getVersionsOrBuilder
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; -
getVersion
Deprecated.tensorflow.GraphDef.version is deprecated. See tensorflow/core/framework/graph.proto;l=43Deprecated 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:
- The version.
-
hasLibrary
boolean hasLibrary()"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;- Returns:
- Whether the library field is set.
-
getLibrary
FunctionDefLibrary getLibrary()"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;- Returns:
- The library.
-
getLibraryOrBuilder
FunctionDefLibraryOrBuilder getLibraryOrBuilder()"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; -
hasDebugInfo
boolean hasDebugInfo()Stack traces for the nodes in this graph.
.tensorflow.GraphDebugInfo debug_info = 5;- Returns:
- Whether the debugInfo field is set.
-
getDebugInfo
GraphDebugInfo getDebugInfo()Stack traces for the nodes in this graph.
.tensorflow.GraphDebugInfo debug_info = 5;- Returns:
- The debugInfo.
-
getDebugInfoOrBuilder
GraphDebugInfoOrBuilder getDebugInfoOrBuilder()Stack traces for the nodes in this graph.
.tensorflow.GraphDebugInfo debug_info = 5;
-