Documentation ¶
Index ¶
- Variables
- type CodeLocation
- func (*CodeLocation) Descriptor() ([]byte, []int)
- func (m *CodeLocation) GetHostName() string
- func (m *CodeLocation) GetStackFrameIds() []string
- func (*CodeLocation) ProtoMessage()
- func (m *CodeLocation) Reset()
- func (m *CodeLocation) String() string
- func (m *CodeLocation) XXX_DiscardUnknown()
- func (m *CodeLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CodeLocation) XXX_Merge(src proto.Message)
- func (m *CodeLocation) XXX_Size() int
- func (m *CodeLocation) XXX_Unmarshal(b []byte) error
- type DebugEvent
- func (*DebugEvent) Descriptor() ([]byte, []int)
- func (m *DebugEvent) GetDebugMetadata() *DebugMetadata
- func (m *DebugEvent) GetDebuggedGraph() *DebuggedGraph
- func (m *DebugEvent) GetExecution() *Execution
- func (m *DebugEvent) GetGraphExecutionTrace() *GraphExecutionTrace
- func (m *DebugEvent) GetGraphId() string
- func (m *DebugEvent) GetGraphOpCreation() *GraphOpCreation
- func (m *DebugEvent) GetSourceFile() *SourceFile
- func (m *DebugEvent) GetStackFrameWithId() *StackFrameWithId
- func (m *DebugEvent) GetStep() int64
- func (m *DebugEvent) GetWallTime() float64
- func (m *DebugEvent) GetWhat() isDebugEvent_What
- func (*DebugEvent) ProtoMessage()
- func (m *DebugEvent) Reset()
- func (m *DebugEvent) String() string
- func (m *DebugEvent) XXX_DiscardUnknown()
- func (m *DebugEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugEvent) XXX_Merge(src proto.Message)
- func (*DebugEvent) XXX_OneofWrappers() []interface{}
- func (m *DebugEvent) XXX_Size() int
- func (m *DebugEvent) XXX_Unmarshal(b []byte) error
- type DebugEvent_DebugMetadata
- type DebugEvent_DebuggedGraph
- type DebugEvent_Execution
- type DebugEvent_GraphExecutionTrace
- type DebugEvent_GraphId
- type DebugEvent_GraphOpCreation
- type DebugEvent_SourceFile
- type DebugEvent_StackFrameWithId
- type DebugMetadata
- func (*DebugMetadata) Descriptor() ([]byte, []int)
- func (m *DebugMetadata) GetFileVersion() string
- func (m *DebugMetadata) GetTensorflowVersion() string
- func (*DebugMetadata) ProtoMessage()
- func (m *DebugMetadata) Reset()
- func (m *DebugMetadata) String() string
- func (m *DebugMetadata) XXX_DiscardUnknown()
- func (m *DebugMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugMetadata) XXX_Merge(src proto.Message)
- func (m *DebugMetadata) XXX_Size() int
- func (m *DebugMetadata) XXX_Unmarshal(b []byte) error
- type DebuggedGraph
- func (*DebuggedGraph) Descriptor() ([]byte, []int)
- func (m *DebuggedGraph) GetGraphId() string
- func (m *DebuggedGraph) GetGraphName() string
- func (m *DebuggedGraph) GetInstrumentedGraphDef() []byte
- func (m *DebuggedGraph) GetInstrumentedOps() []string
- func (m *DebuggedGraph) GetOriginalGraphDef() []byte
- func (m *DebuggedGraph) GetOuterContextId() string
- func (*DebuggedGraph) ProtoMessage()
- func (m *DebuggedGraph) Reset()
- func (m *DebuggedGraph) String() string
- func (m *DebuggedGraph) XXX_DiscardUnknown()
- func (m *DebuggedGraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebuggedGraph) XXX_Merge(src proto.Message)
- func (m *DebuggedGraph) XXX_Size() int
- func (m *DebuggedGraph) XXX_Unmarshal(b []byte) error
- type Execution
- func (*Execution) Descriptor() ([]byte, []int)
- func (m *Execution) GetCodeLocation() *CodeLocation
- func (m *Execution) GetGraphId() string
- func (m *Execution) GetInputTensorIds() []int64
- func (m *Execution) GetNumOutputs() int32
- func (m *Execution) GetOpType() string
- func (m *Execution) GetOutputTensorIds() []int64
- func (m *Execution) GetTensorDebugMode() TensorDebugMode
- func (m *Execution) GetTensorProtos() []*framework.TensorProto
- func (*Execution) ProtoMessage()
- func (m *Execution) Reset()
- func (m *Execution) String() string
- func (m *Execution) XXX_DiscardUnknown()
- func (m *Execution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Execution) XXX_Merge(src proto.Message)
- func (m *Execution) XXX_Size() int
- func (m *Execution) XXX_Unmarshal(b []byte) error
- type GraphExecutionTrace
- func (*GraphExecutionTrace) Descriptor() ([]byte, []int)
- func (m *GraphExecutionTrace) GetDeviceName() string
- func (m *GraphExecutionTrace) GetOpName() string
- func (m *GraphExecutionTrace) GetOutputSlot() int32
- func (m *GraphExecutionTrace) GetTensorDebugMode() TensorDebugMode
- func (m *GraphExecutionTrace) GetTensorProto() *framework.TensorProto
- func (m *GraphExecutionTrace) GetTfdbgContextId() string
- func (*GraphExecutionTrace) ProtoMessage()
- func (m *GraphExecutionTrace) Reset()
- func (m *GraphExecutionTrace) String() string
- func (m *GraphExecutionTrace) XXX_DiscardUnknown()
- func (m *GraphExecutionTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GraphExecutionTrace) XXX_Merge(src proto.Message)
- func (m *GraphExecutionTrace) XXX_Size() int
- func (m *GraphExecutionTrace) XXX_Unmarshal(b []byte) error
- type GraphOpCreation
- func (*GraphOpCreation) Descriptor() ([]byte, []int)
- func (m *GraphOpCreation) GetCodeLocation() *CodeLocation
- func (m *GraphOpCreation) GetDeviceName() string
- func (m *GraphOpCreation) GetGraphId() string
- func (m *GraphOpCreation) GetGraphName() string
- func (m *GraphOpCreation) GetInputNames() []string
- func (m *GraphOpCreation) GetNumOutputs() int32
- func (m *GraphOpCreation) GetOpName() string
- func (m *GraphOpCreation) GetOpType() string
- func (m *GraphOpCreation) GetOutputTensorIds() []int32
- func (*GraphOpCreation) ProtoMessage()
- func (m *GraphOpCreation) Reset()
- func (m *GraphOpCreation) String() string
- func (m *GraphOpCreation) XXX_DiscardUnknown()
- func (m *GraphOpCreation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GraphOpCreation) XXX_Merge(src proto.Message)
- func (m *GraphOpCreation) XXX_Size() int
- func (m *GraphOpCreation) XXX_Unmarshal(b []byte) error
- type SourceFile
- func (*SourceFile) Descriptor() ([]byte, []int)
- func (m *SourceFile) GetFilePath() string
- func (m *SourceFile) GetHostName() string
- func (m *SourceFile) GetLines() []string
- func (*SourceFile) ProtoMessage()
- func (m *SourceFile) Reset()
- func (m *SourceFile) String() string
- func (m *SourceFile) XXX_DiscardUnknown()
- func (m *SourceFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SourceFile) XXX_Merge(src proto.Message)
- func (m *SourceFile) XXX_Size() int
- func (m *SourceFile) XXX_Unmarshal(b []byte) error
- type StackFrameWithId
- func (*StackFrameWithId) Descriptor() ([]byte, []int)
- func (m *StackFrameWithId) GetFileLineCol() *framework.GraphDebugInfo_FileLineCol
- func (m *StackFrameWithId) GetId() string
- func (*StackFrameWithId) ProtoMessage()
- func (m *StackFrameWithId) Reset()
- func (m *StackFrameWithId) String() string
- func (m *StackFrameWithId) XXX_DiscardUnknown()
- func (m *StackFrameWithId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StackFrameWithId) XXX_Merge(src proto.Message)
- func (m *StackFrameWithId) XXX_Size() int
- func (m *StackFrameWithId) XXX_Unmarshal(b []byte) error
- type TensorDebugMode
Constants ¶
This section is empty.
Variables ¶
var TensorDebugMode_name = map[int32]string{
0: "UNSPECIFIED",
1: "NO_TENSOR",
2: "CURT_HEALTH",
3: "CONCISE_HEALTH",
4: "FULL_HEALTH",
5: "SHAPE",
6: "FULL_NUMERICS",
7: "FULL_TENSOR",
8: "REDUCE_INF_NAN_THREE_SLOTS",
}
var TensorDebugMode_value = map[string]int32{
"UNSPECIFIED": 0,
"NO_TENSOR": 1,
"CURT_HEALTH": 2,
"CONCISE_HEALTH": 3,
"FULL_HEALTH": 4,
"SHAPE": 5,
"FULL_NUMERICS": 6,
"FULL_TENSOR": 7,
"REDUCE_INF_NAN_THREE_SLOTS": 8,
}
Functions ¶
This section is empty.
Types ¶
type CodeLocation ¶
type CodeLocation struct { // Host name on which the source files are located. HostName string `protobuf:"bytes,1,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` // ID to a stack frame, each of which is pointed to // by a unique ID. The ordering of the frames is consistent with Python's // `traceback.extract_tb()`. StackFrameIds []string `protobuf:"bytes,2,rep,name=stack_frame_ids,json=stackFrameIds,proto3" json:"stack_frame_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Code location information: A stack trace with host-name information. Instead of encoding the detailed stack trace, this proto refers to IDs of stack frames stored as `StackFrameWithId` protos.
func (*CodeLocation) Descriptor ¶
func (*CodeLocation) Descriptor() ([]byte, []int)
func (*CodeLocation) GetHostName ¶
func (m *CodeLocation) GetHostName() string
func (*CodeLocation) GetStackFrameIds ¶
func (m *CodeLocation) GetStackFrameIds() []string
func (*CodeLocation) ProtoMessage ¶
func (*CodeLocation) ProtoMessage()
func (*CodeLocation) Reset ¶
func (m *CodeLocation) Reset()
func (*CodeLocation) String ¶
func (m *CodeLocation) String() string
func (*CodeLocation) XXX_DiscardUnknown ¶
func (m *CodeLocation) XXX_DiscardUnknown()
func (*CodeLocation) XXX_Marshal ¶
func (m *CodeLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CodeLocation) XXX_Merge ¶
func (m *CodeLocation) XXX_Merge(src proto.Message)
func (*CodeLocation) XXX_Size ¶
func (m *CodeLocation) XXX_Size() int
func (*CodeLocation) XXX_Unmarshal ¶
func (m *CodeLocation) XXX_Unmarshal(b []byte) error
type DebugEvent ¶
type DebugEvent struct { // Timestamp in seconds (with microsecond precision). WallTime float64 `protobuf:"fixed64,1,opt,name=wall_time,json=wallTime,proto3" json:"wall_time,omitempty"` // Step of training (if available). Step int64 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"` // Types that are valid to be assigned to What: // *DebugEvent_DebugMetadata // *DebugEvent_SourceFile // *DebugEvent_StackFrameWithId // *DebugEvent_GraphOpCreation // *DebugEvent_DebuggedGraph // *DebugEvent_Execution // *DebugEvent_GraphExecutionTrace // *DebugEvent_GraphId What isDebugEvent_What `protobuf_oneof:"what"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An Event related to the debugging of a TensorFlow program.
func (*DebugEvent) Descriptor ¶
func (*DebugEvent) Descriptor() ([]byte, []int)
func (*DebugEvent) GetDebugMetadata ¶
func (m *DebugEvent) GetDebugMetadata() *DebugMetadata
func (*DebugEvent) GetDebuggedGraph ¶
func (m *DebugEvent) GetDebuggedGraph() *DebuggedGraph
func (*DebugEvent) GetExecution ¶
func (m *DebugEvent) GetExecution() *Execution
func (*DebugEvent) GetGraphExecutionTrace ¶
func (m *DebugEvent) GetGraphExecutionTrace() *GraphExecutionTrace
func (*DebugEvent) GetGraphId ¶
func (m *DebugEvent) GetGraphId() string
func (*DebugEvent) GetGraphOpCreation ¶
func (m *DebugEvent) GetGraphOpCreation() *GraphOpCreation
func (*DebugEvent) GetSourceFile ¶
func (m *DebugEvent) GetSourceFile() *SourceFile
func (*DebugEvent) GetStackFrameWithId ¶
func (m *DebugEvent) GetStackFrameWithId() *StackFrameWithId
func (*DebugEvent) GetStep ¶
func (m *DebugEvent) GetStep() int64
func (*DebugEvent) GetWallTime ¶
func (m *DebugEvent) GetWallTime() float64
func (*DebugEvent) GetWhat ¶
func (m *DebugEvent) GetWhat() isDebugEvent_What
func (*DebugEvent) ProtoMessage ¶
func (*DebugEvent) ProtoMessage()
func (*DebugEvent) Reset ¶
func (m *DebugEvent) Reset()
func (*DebugEvent) String ¶
func (m *DebugEvent) String() string
func (*DebugEvent) XXX_DiscardUnknown ¶
func (m *DebugEvent) XXX_DiscardUnknown()
func (*DebugEvent) XXX_Marshal ¶
func (m *DebugEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugEvent) XXX_Merge ¶
func (m *DebugEvent) XXX_Merge(src proto.Message)
func (*DebugEvent) XXX_OneofWrappers ¶
func (*DebugEvent) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*DebugEvent) XXX_Size ¶
func (m *DebugEvent) XXX_Size() int
func (*DebugEvent) XXX_Unmarshal ¶
func (m *DebugEvent) XXX_Unmarshal(b []byte) error
type DebugEvent_DebugMetadata ¶
type DebugEvent_DebugMetadata struct {
DebugMetadata *DebugMetadata `protobuf:"bytes,3,opt,name=debug_metadata,json=debugMetadata,proto3,oneof"`
}
type DebugEvent_DebuggedGraph ¶
type DebugEvent_DebuggedGraph struct {
DebuggedGraph *DebuggedGraph `protobuf:"bytes,8,opt,name=debugged_graph,json=debuggedGraph,proto3,oneof"`
}
type DebugEvent_Execution ¶
type DebugEvent_Execution struct {
Execution *Execution `protobuf:"bytes,9,opt,name=execution,proto3,oneof"`
}
type DebugEvent_GraphExecutionTrace ¶
type DebugEvent_GraphExecutionTrace struct {
GraphExecutionTrace *GraphExecutionTrace `protobuf:"bytes,10,opt,name=graph_execution_trace,json=graphExecutionTrace,proto3,oneof"`
}
type DebugEvent_GraphId ¶
type DebugEvent_GraphId struct {
GraphId string `protobuf:"bytes,11,opt,name=graph_id,json=graphId,proto3,oneof"`
}
type DebugEvent_GraphOpCreation ¶
type DebugEvent_GraphOpCreation struct {
GraphOpCreation *GraphOpCreation `protobuf:"bytes,7,opt,name=graph_op_creation,json=graphOpCreation,proto3,oneof"`
}
type DebugEvent_SourceFile ¶
type DebugEvent_SourceFile struct {
SourceFile *SourceFile `protobuf:"bytes,4,opt,name=source_file,json=sourceFile,proto3,oneof"`
}
type DebugEvent_StackFrameWithId ¶
type DebugEvent_StackFrameWithId struct {
StackFrameWithId *StackFrameWithId `protobuf:"bytes,6,opt,name=stack_frame_with_id,json=stackFrameWithId,proto3,oneof"`
}
type DebugMetadata ¶
type DebugMetadata struct { // Version of TensorFlow. TensorflowVersion string `protobuf:"bytes,1,opt,name=tensorflow_version,json=tensorflowVersion,proto3" json:"tensorflow_version,omitempty"` // Version of the DebugEvent file format. // Has a format of "debug.Event:<number>", e.g., "debug.Event:1". FileVersion string `protobuf:"bytes,2,opt,name=file_version,json=fileVersion,proto3" json:"file_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Metadata about the debugger and the debugged TensorFlow program.
func (*DebugMetadata) Descriptor ¶
func (*DebugMetadata) Descriptor() ([]byte, []int)
func (*DebugMetadata) GetFileVersion ¶
func (m *DebugMetadata) GetFileVersion() string
func (*DebugMetadata) GetTensorflowVersion ¶
func (m *DebugMetadata) GetTensorflowVersion() string
func (*DebugMetadata) ProtoMessage ¶
func (*DebugMetadata) ProtoMessage()
func (*DebugMetadata) Reset ¶
func (m *DebugMetadata) Reset()
func (*DebugMetadata) String ¶
func (m *DebugMetadata) String() string
func (*DebugMetadata) XXX_DiscardUnknown ¶
func (m *DebugMetadata) XXX_DiscardUnknown()
func (*DebugMetadata) XXX_Marshal ¶
func (m *DebugMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugMetadata) XXX_Merge ¶
func (m *DebugMetadata) XXX_Merge(src proto.Message)
func (*DebugMetadata) XXX_Size ¶
func (m *DebugMetadata) XXX_Size() int
func (*DebugMetadata) XXX_Unmarshal ¶
func (m *DebugMetadata) XXX_Unmarshal(b []byte) error
type DebuggedGraph ¶
type DebuggedGraph struct { // An ID for the graph. // This can be used up to look up graph names. Generated by the debugger. GraphId string `protobuf:"bytes,1,opt,name=graph_id,json=graphId,proto3" json:"graph_id,omitempty"` // Name of the graph (if available). GraphName string `protobuf:"bytes,2,opt,name=graph_name,json=graphName,proto3" json:"graph_name,omitempty"` // Names of the instrumented ops. This can be used to look up op name // based on the numeric-summary tensors (2nd column). InstrumentedOps []string `protobuf:"bytes,3,rep,name=instrumented_ops,json=instrumentedOps,proto3" json:"instrumented_ops,omitempty"` // Original (uninstrumented) GraphDef (if available). OriginalGraphDef []byte `protobuf:"bytes,4,opt,name=original_graph_def,json=originalGraphDef,proto3" json:"original_graph_def,omitempty"` // An encoded version of a GraphDef. // This graph may include the debugger-inserted ops. InstrumentedGraphDef []byte `protobuf:"bytes,5,opt,name=instrumented_graph_def,json=instrumentedGraphDef,proto3" json:"instrumented_graph_def,omitempty"` // IDs of the immediate enclosing context (graph), if any. OuterContextId string `protobuf:"bytes,6,opt,name=outer_context_id,json=outerContextId,proto3" json:"outer_context_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A debugger-instrumented graph.
func (*DebuggedGraph) Descriptor ¶
func (*DebuggedGraph) Descriptor() ([]byte, []int)
func (*DebuggedGraph) GetGraphId ¶
func (m *DebuggedGraph) GetGraphId() string
func (*DebuggedGraph) GetGraphName ¶
func (m *DebuggedGraph) GetGraphName() string
func (*DebuggedGraph) GetInstrumentedGraphDef ¶
func (m *DebuggedGraph) GetInstrumentedGraphDef() []byte
func (*DebuggedGraph) GetInstrumentedOps ¶
func (m *DebuggedGraph) GetInstrumentedOps() []string
func (*DebuggedGraph) GetOriginalGraphDef ¶
func (m *DebuggedGraph) GetOriginalGraphDef() []byte
func (*DebuggedGraph) GetOuterContextId ¶
func (m *DebuggedGraph) GetOuterContextId() string
func (*DebuggedGraph) ProtoMessage ¶
func (*DebuggedGraph) ProtoMessage()
func (*DebuggedGraph) Reset ¶
func (m *DebuggedGraph) Reset()
func (*DebuggedGraph) String ¶
func (m *DebuggedGraph) String() string
func (*DebuggedGraph) XXX_DiscardUnknown ¶
func (m *DebuggedGraph) XXX_DiscardUnknown()
func (*DebuggedGraph) XXX_Marshal ¶
func (m *DebuggedGraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebuggedGraph) XXX_Merge ¶
func (m *DebuggedGraph) XXX_Merge(src proto.Message)
func (*DebuggedGraph) XXX_Size ¶
func (m *DebuggedGraph) XXX_Size() int
func (*DebuggedGraph) XXX_Unmarshal ¶
func (m *DebuggedGraph) XXX_Unmarshal(b []byte) error
type Execution ¶
type Execution struct { // Op type (e.g., "MatMul"). // In the case of a Graph, this is the name of the Graph. OpType string `protobuf:"bytes,1,opt,name=op_type,json=opType,proto3" json:"op_type,omitempty"` // Number of output tensors. NumOutputs int32 `protobuf:"varint,2,opt,name=num_outputs,json=numOutputs,proto3" json:"num_outputs,omitempty"` // The graph that's executed: applicable only to the eager // execution of a FuncGraph. GraphId string `protobuf:"bytes,3,opt,name=graph_id,json=graphId,proto3" json:"graph_id,omitempty"` // IDs of the input tensors (if available). InputTensorIds []int64 `protobuf:"varint,4,rep,packed,name=input_tensor_ids,json=inputTensorIds,proto3" json:"input_tensor_ids,omitempty"` // IDs of the output tensors (if availbable). // If specified, must have the same length as tensor_protos. OutputTensorIds []int64 `protobuf:"varint,5,rep,packed,name=output_tensor_ids,json=outputTensorIds,proto3" json:"output_tensor_ids,omitempty"` // Type of the tensor value encapsulated in this proto. TensorDebugMode TensorDebugMode `` /* 141-byte string literal not displayed */ // Output Tensor values in the type described by `tensor_value_type`. // The length of this should match `num_outputs`. TensorProtos []*framework.TensorProto `protobuf:"bytes,7,rep,name=tensor_protos,json=tensorProtos,proto3" json:"tensor_protos,omitempty"` // Stack trace of the eager execution. CodeLocation *CodeLocation `protobuf:"bytes,8,opt,name=code_location,json=codeLocation,proto3" json:"code_location,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Data relating to the eager execution of an op or a Graph. For a op that generates N output tensors (N >= 0), only one Execution proto will be used to describe the execution event.
func (*Execution) Descriptor ¶
func (*Execution) GetCodeLocation ¶
func (m *Execution) GetCodeLocation() *CodeLocation
func (*Execution) GetGraphId ¶
func (*Execution) GetInputTensorIds ¶
func (*Execution) GetNumOutputs ¶
func (*Execution) GetOutputTensorIds ¶
func (*Execution) GetTensorDebugMode ¶
func (m *Execution) GetTensorDebugMode() TensorDebugMode
func (*Execution) GetTensorProtos ¶
func (m *Execution) GetTensorProtos() []*framework.TensorProto
func (*Execution) ProtoMessage ¶
func (*Execution) ProtoMessage()
func (*Execution) XXX_DiscardUnknown ¶
func (m *Execution) XXX_DiscardUnknown()
func (*Execution) XXX_Marshal ¶
func (*Execution) XXX_Unmarshal ¶
type GraphExecutionTrace ¶
type GraphExecutionTrace struct { // Unique ID of the context that the executed op(s) belong to (e.g., a // compiled concrete tf.function). TfdbgContextId string `protobuf:"bytes,1,opt,name=tfdbg_context_id,json=tfdbgContextId,proto3" json:"tfdbg_context_id,omitempty"` // Name of the op (applicable only in the case of the `FULL_TENSOR` trace // level). OpName string `protobuf:"bytes,2,opt,name=op_name,json=opName,proto3" json:"op_name,omitempty"` // Output slot of the tensor (applicable only in the case of the `FULL_TENSOR` // trace level). OutputSlot int32 `protobuf:"varint,3,opt,name=output_slot,json=outputSlot,proto3" json:"output_slot,omitempty"` // Type of the tensor value encapsulated in this proto. TensorDebugMode TensorDebugMode `` /* 141-byte string literal not displayed */ // Tensor value in the type described by `tensor_value_type`. // This tensor may summarize the value of a single intermediate op of the // graph, or those of multiple intermediate tensors. TensorProto *framework.TensorProto `protobuf:"bytes,5,opt,name=tensor_proto,json=tensorProto,proto3" json:"tensor_proto,omitempty"` // Name of the device that the op belongs to. DeviceName string `protobuf:"bytes,6,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Data relating to an execution of a Graph (e.g., an eager execution of a FuncGraph). The values of the intermediate tensors computed in the graph are recorded in this proto. A graph execution may correspond to one or more pieces of `GraphExecutionTrace`, depending on whether the instrumented tensor values are summarized in an aggregated or separate fashion.
func (*GraphExecutionTrace) Descriptor ¶
func (*GraphExecutionTrace) Descriptor() ([]byte, []int)
func (*GraphExecutionTrace) GetDeviceName ¶
func (m *GraphExecutionTrace) GetDeviceName() string
func (*GraphExecutionTrace) GetOpName ¶
func (m *GraphExecutionTrace) GetOpName() string
func (*GraphExecutionTrace) GetOutputSlot ¶
func (m *GraphExecutionTrace) GetOutputSlot() int32
func (*GraphExecutionTrace) GetTensorDebugMode ¶
func (m *GraphExecutionTrace) GetTensorDebugMode() TensorDebugMode
func (*GraphExecutionTrace) GetTensorProto ¶
func (m *GraphExecutionTrace) GetTensorProto() *framework.TensorProto
func (*GraphExecutionTrace) GetTfdbgContextId ¶
func (m *GraphExecutionTrace) GetTfdbgContextId() string
func (*GraphExecutionTrace) ProtoMessage ¶
func (*GraphExecutionTrace) ProtoMessage()
func (*GraphExecutionTrace) Reset ¶
func (m *GraphExecutionTrace) Reset()
func (*GraphExecutionTrace) String ¶
func (m *GraphExecutionTrace) String() string
func (*GraphExecutionTrace) XXX_DiscardUnknown ¶
func (m *GraphExecutionTrace) XXX_DiscardUnknown()
func (*GraphExecutionTrace) XXX_Marshal ¶
func (m *GraphExecutionTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GraphExecutionTrace) XXX_Merge ¶
func (m *GraphExecutionTrace) XXX_Merge(src proto.Message)
func (*GraphExecutionTrace) XXX_Size ¶
func (m *GraphExecutionTrace) XXX_Size() int
func (*GraphExecutionTrace) XXX_Unmarshal ¶
func (m *GraphExecutionTrace) XXX_Unmarshal(b []byte) error
type GraphOpCreation ¶
type GraphOpCreation struct { // Type of the op (e.g., "MatMul"). OpType string `protobuf:"bytes,1,opt,name=op_type,json=opType,proto3" json:"op_type,omitempty"` // Name of the op (e.g., "Dense/MatMul_1"). OpName string `protobuf:"bytes,2,opt,name=op_name,json=opName,proto3" json:"op_name,omitempty"` // Name of the graph that the op is a part of (if available). GraphName string `protobuf:"bytes,3,opt,name=graph_name,json=graphName,proto3" json:"graph_name,omitempty"` // Unique ID of the graph (generated by debugger). GraphId string `protobuf:"bytes,4,opt,name=graph_id,json=graphId,proto3" json:"graph_id,omitempty"` // Name of the device that the op is assigned to (if available). DeviceName string `protobuf:"bytes,5,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // Names of the input tensors to the op. InputNames []string `protobuf:"bytes,6,rep,name=input_names,json=inputNames,proto3" json:"input_names,omitempty"` // Number of output tensors emitted by the op. NumOutputs int32 `protobuf:"varint,7,opt,name=num_outputs,json=numOutputs,proto3" json:"num_outputs,omitempty"` // The unique ID for code location (stack trace) of the op's creation. CodeLocation *CodeLocation `protobuf:"bytes,8,opt,name=code_location,json=codeLocation,proto3" json:"code_location,omitempty"` // Unique IDs for the output tensors of this op. OutputTensorIds []int32 `protobuf:"varint,9,rep,packed,name=output_tensor_ids,json=outputTensorIds,proto3" json:"output_tensor_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The creation of an op in a TensorFlow Graph (e.g., FuncGraph in TF2).
func (*GraphOpCreation) Descriptor ¶
func (*GraphOpCreation) Descriptor() ([]byte, []int)
func (*GraphOpCreation) GetCodeLocation ¶
func (m *GraphOpCreation) GetCodeLocation() *CodeLocation
func (*GraphOpCreation) GetDeviceName ¶
func (m *GraphOpCreation) GetDeviceName() string
func (*GraphOpCreation) GetGraphId ¶
func (m *GraphOpCreation) GetGraphId() string
func (*GraphOpCreation) GetGraphName ¶
func (m *GraphOpCreation) GetGraphName() string
func (*GraphOpCreation) GetInputNames ¶
func (m *GraphOpCreation) GetInputNames() []string
func (*GraphOpCreation) GetNumOutputs ¶
func (m *GraphOpCreation) GetNumOutputs() int32
func (*GraphOpCreation) GetOpName ¶
func (m *GraphOpCreation) GetOpName() string
func (*GraphOpCreation) GetOpType ¶
func (m *GraphOpCreation) GetOpType() string
func (*GraphOpCreation) GetOutputTensorIds ¶
func (m *GraphOpCreation) GetOutputTensorIds() []int32
func (*GraphOpCreation) ProtoMessage ¶
func (*GraphOpCreation) ProtoMessage()
func (*GraphOpCreation) Reset ¶
func (m *GraphOpCreation) Reset()
func (*GraphOpCreation) String ¶
func (m *GraphOpCreation) String() string
func (*GraphOpCreation) XXX_DiscardUnknown ¶
func (m *GraphOpCreation) XXX_DiscardUnknown()
func (*GraphOpCreation) XXX_Marshal ¶
func (m *GraphOpCreation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GraphOpCreation) XXX_Merge ¶
func (m *GraphOpCreation) XXX_Merge(src proto.Message)
func (*GraphOpCreation) XXX_Size ¶
func (m *GraphOpCreation) XXX_Size() int
func (*GraphOpCreation) XXX_Unmarshal ¶
func (m *GraphOpCreation) XXX_Unmarshal(b []byte) error
type SourceFile ¶
type SourceFile struct { // Path to the file. FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // Name of the host on which the file is located. HostName string `protobuf:"bytes,2,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` // Line-by-line content of the file. Lines []string `protobuf:"bytes,3,rep,name=lines,proto3" json:"lines,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Content of a source file involved in the execution of the debugged TensorFlow program.
func (*SourceFile) Descriptor ¶
func (*SourceFile) Descriptor() ([]byte, []int)
func (*SourceFile) GetFilePath ¶
func (m *SourceFile) GetFilePath() string
func (*SourceFile) GetHostName ¶
func (m *SourceFile) GetHostName() string
func (*SourceFile) GetLines ¶
func (m *SourceFile) GetLines() []string
func (*SourceFile) ProtoMessage ¶
func (*SourceFile) ProtoMessage()
func (*SourceFile) Reset ¶
func (m *SourceFile) Reset()
func (*SourceFile) String ¶
func (m *SourceFile) String() string
func (*SourceFile) XXX_DiscardUnknown ¶
func (m *SourceFile) XXX_DiscardUnknown()
func (*SourceFile) XXX_Marshal ¶
func (m *SourceFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SourceFile) XXX_Merge ¶
func (m *SourceFile) XXX_Merge(src proto.Message)
func (*SourceFile) XXX_Size ¶
func (m *SourceFile) XXX_Size() int
func (*SourceFile) XXX_Unmarshal ¶
func (m *SourceFile) XXX_Unmarshal(b []byte) error
type StackFrameWithId ¶
type StackFrameWithId struct { // A unique ID for the stack frame: A UUID-like string. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Stack frame, i.e., a frame of a stack trace, containing information // regarding the file name, line number, function name, code content // of the line, and column number (if available). FileLineCol *framework.GraphDebugInfo_FileLineCol `protobuf:"bytes,2,opt,name=file_line_col,json=fileLineCol,proto3" json:"file_line_col,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A stack frame with ID.
func (*StackFrameWithId) Descriptor ¶
func (*StackFrameWithId) Descriptor() ([]byte, []int)
func (*StackFrameWithId) GetFileLineCol ¶
func (m *StackFrameWithId) GetFileLineCol() *framework.GraphDebugInfo_FileLineCol
func (*StackFrameWithId) GetId ¶
func (m *StackFrameWithId) GetId() string
func (*StackFrameWithId) ProtoMessage ¶
func (*StackFrameWithId) ProtoMessage()
func (*StackFrameWithId) Reset ¶
func (m *StackFrameWithId) Reset()
func (*StackFrameWithId) String ¶
func (m *StackFrameWithId) String() string
func (*StackFrameWithId) XXX_DiscardUnknown ¶
func (m *StackFrameWithId) XXX_DiscardUnknown()
func (*StackFrameWithId) XXX_Marshal ¶
func (m *StackFrameWithId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StackFrameWithId) XXX_Merge ¶
func (m *StackFrameWithId) XXX_Merge(src proto.Message)
func (*StackFrameWithId) XXX_Size ¶
func (m *StackFrameWithId) XXX_Size() int
func (*StackFrameWithId) XXX_Unmarshal ¶
func (m *StackFrameWithId) XXX_Unmarshal(b []byte) error
type TensorDebugMode ¶
type TensorDebugMode int32
Available modes for extracting debugging information from a Tensor. TODO(cais): Document the detailed column names and semantics in a separate markdown file once the implementation settles.
const ( TensorDebugMode_UNSPECIFIED TensorDebugMode = 0 // Only records what tensors are computed, eagerly or in graphs. // No information regarding the value of the tensor is available. TensorDebugMode_NO_TENSOR TensorDebugMode = 1 // A minimalist health summary for float-type tensors. // Contains information only about the presence/absence of pathological // values including Infinity and NaN. // Applicable only to float dtypes. TensorDebugMode_CURT_HEALTH TensorDebugMode = 2 // A concise health summary for float-type tensors. // Contains more information that CURT_HEALTH. // Infinity and NaN are treated differently. // Applicable only to float and integer dtypes. TensorDebugMode_CONCISE_HEALTH TensorDebugMode = 3 // A detailed health summary. // Contains further detailed information than `CONCISE_HEALTH`. // Information about device, dtype and shape are included. // Counts for various types of values (Infinity, NaN, negative, zero, // positive) are included. // Applicable to float, integer and boolean dtypes. TensorDebugMode_FULL_HEALTH TensorDebugMode = 4 // Provides full runtime shape information, up to a maximum rank, beyond // which the dimension sizes are truncated. TensorDebugMode_SHAPE TensorDebugMode = 5 // Full numeric summary. // Including device, dtype, shape, counts of various types of values // (Infinity, NaN, negative, zero, positive), and summary statistics // (minimum, maximum, mean and variance). // Applicable to float, integer and boolean dtypes. TensorDebugMode_FULL_NUMERICS TensorDebugMode = 6 // Full tensor value. TensorDebugMode_FULL_TENSOR TensorDebugMode = 7 // Reduce the elements of a tensor to a rank-1 tensor of shape [3], in which // - the 1st element is -inf if any element of the tensor is -inf, // or zero otherwise. // - the 2nd element is +inf if any element of the tensor is +inf, // or zero otherwise. // - the 3rd element is nan if any element of the tensor is nan, or zero // otherwise. TensorDebugMode_REDUCE_INF_NAN_THREE_SLOTS TensorDebugMode = 8 )
func (TensorDebugMode) EnumDescriptor ¶
func (TensorDebugMode) EnumDescriptor() ([]byte, []int)
func (TensorDebugMode) String ¶
func (x TensorDebugMode) String() string