Documentation ¶
Index ¶
- Variables
- type GraphDef
- func (*GraphDef) Descriptor() ([]byte, []int)deprecated
- func (x *GraphDef) GetDebugInfo() *graph_debug_info_proto.GraphDebugInfo
- func (x *GraphDef) GetLibrary() *function_go_proto.FunctionDefLibrary
- func (x *GraphDef) GetNode() []*node_def_go_proto.NodeDef
- func (x *GraphDef) GetVersion() int32deprecated
- func (x *GraphDef) GetVersions() *versions_go_proto.VersionDef
- func (*GraphDef) ProtoMessage()
- func (x *GraphDef) ProtoReflect() protoreflect.Message
- func (x *GraphDef) Reset()
- func (x *GraphDef) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_tensorflow_core_framework_graph_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GraphDef ¶
type GraphDef struct { Node []*node_def_go_proto.NodeDef `protobuf:"bytes,1,rep,name=node,proto3" json:"node,omitempty"` // 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. Versions *versions_go_proto.VersionDef `protobuf:"bytes,4,opt,name=versions,proto3" json:"versions,omitempty"` // Deprecated single version field; use versions above instead. Since all // GraphDef changes before "versions" was introduced were forward // compatible, this field is entirely ignored. // // Deprecated: Marked as deprecated in tensorflow/core/framework/graph.proto. Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` // "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. Library *function_go_proto.FunctionDefLibrary `protobuf:"bytes,2,opt,name=library,proto3" json:"library,omitempty"` // Stack traces for the nodes in this graph. DebugInfo *graph_debug_info_proto.GraphDebugInfo `protobuf:"bytes,5,opt,name=debug_info,json=debugInfo,proto3" json:"debug_info,omitempty"` // contains filtered or unexported fields }
Represents the graph of operations
func (*GraphDef) Descriptor
deprecated
func (*GraphDef) GetDebugInfo ¶ added in v0.5.0
func (x *GraphDef) GetDebugInfo() *graph_debug_info_proto.GraphDebugInfo
func (*GraphDef) GetLibrary ¶
func (x *GraphDef) GetLibrary() *function_go_proto.FunctionDefLibrary
func (*GraphDef) GetNode ¶
func (x *GraphDef) GetNode() []*node_def_go_proto.NodeDef
func (*GraphDef) GetVersion
deprecated
func (*GraphDef) GetVersions ¶
func (x *GraphDef) GetVersions() *versions_go_proto.VersionDef
func (*GraphDef) ProtoMessage ¶
func (*GraphDef) ProtoMessage()
func (*GraphDef) ProtoReflect ¶
func (x *GraphDef) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.