debug

package
v0.0.0-...-d1695c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package debug is a generated protocol buffer package.

It is generated from these files:

tensorflow/core/debug/debug_service.proto
tensorflow/core/debug/debugger_event_metadata.proto

It has these top-level messages:

EventReply
DebuggerEventMetadata

Index

Constants

This section is empty.

Variables

View Source
var EventReply_DebugOpStateChange_Change_name = map[int32]string{
	0: "DISABLE",
	1: "ENABLE",
}
View Source
var EventReply_DebugOpStateChange_Change_value = map[string]int32{
	"DISABLE": 0,
	"ENABLE":  1,
}

Functions

func RegisterEventListenerServer

func RegisterEventListenerServer(s *grpc.Server, srv EventListenerServer)

Types

type DebuggerEventMetadata

type DebuggerEventMetadata struct {
	Device     string `protobuf:"bytes,1,opt,name=device" json:"device,omitempty"`
	OutputSlot int32  `protobuf:"varint,2,opt,name=output_slot,json=outputSlot" json:"output_slot,omitempty"`
}

Encapsulates per-event data related to debugging.

func (*DebuggerEventMetadata) Descriptor

func (*DebuggerEventMetadata) Descriptor() ([]byte, []int)

func (*DebuggerEventMetadata) GetDevice

func (m *DebuggerEventMetadata) GetDevice() string

func (*DebuggerEventMetadata) GetOutputSlot

func (m *DebuggerEventMetadata) GetOutputSlot() int32

func (*DebuggerEventMetadata) ProtoMessage

func (*DebuggerEventMetadata) ProtoMessage()

func (*DebuggerEventMetadata) Reset

func (m *DebuggerEventMetadata) Reset()

func (*DebuggerEventMetadata) String

func (m *DebuggerEventMetadata) String() string

type EventListenerClient

type EventListenerClient interface {
	// Client(s) can use this RPC method to send the EventListener Event protos.
	// The Event protos can hold information such as:
	//   1) intermediate tensors from a debugged graph being executed, which can
	//      be sent from DebugIdentity ops configured with grpc URLs.
	//   2) GraphDefs of partition graphs, which can be sent from special debug
	//      ops that get executed immediately after the beginning of the graph
	//      execution.
	SendEvents(ctx context.Context, opts ...grpc.CallOption) (EventListener_SendEventsClient, error)
}

func NewEventListenerClient

func NewEventListenerClient(cc *grpc.ClientConn) EventListenerClient

type EventListenerServer

type EventListenerServer interface {
	// Client(s) can use this RPC method to send the EventListener Event protos.
	// The Event protos can hold information such as:
	//   1) intermediate tensors from a debugged graph being executed, which can
	//      be sent from DebugIdentity ops configured with grpc URLs.
	//   2) GraphDefs of partition graphs, which can be sent from special debug
	//      ops that get executed immediately after the beginning of the graph
	//      execution.
	SendEvents(EventListener_SendEventsServer) error
}

type EventListener_SendEventsClient

type EventListener_SendEventsClient interface {
	Send(*tensorflow5.Event) error
	Recv() (*EventReply, error)
	grpc.ClientStream
}

type EventListener_SendEventsServer

type EventListener_SendEventsServer interface {
	Send(*EventReply) error
	Recv() (*tensorflow5.Event, error)
	grpc.ServerStream
}

type EventReply

type EventReply struct {
	DebugOpStateChanges []*EventReply_DebugOpStateChange `protobuf:"bytes,1,rep,name=debug_op_state_changes,json=debugOpStateChanges" json:"debug_op_state_changes,omitempty"`
}

Reply message from EventListener to the client, i.e., to the source of the Event protocol buffers, e.g., debug ops inserted by a debugged runtime to a TensorFlow graph being executed.

func (*EventReply) Descriptor

func (*EventReply) Descriptor() ([]byte, []int)

func (*EventReply) GetDebugOpStateChanges

func (m *EventReply) GetDebugOpStateChanges() []*EventReply_DebugOpStateChange

func (*EventReply) ProtoMessage

func (*EventReply) ProtoMessage()

func (*EventReply) Reset

func (m *EventReply) Reset()

func (*EventReply) String

func (m *EventReply) String() string

type EventReply_DebugOpStateChange

type EventReply_DebugOpStateChange struct {
	Change     EventReply_DebugOpStateChange_Change `protobuf:"varint,1,opt,name=change,enum=tensorflow.EventReply_DebugOpStateChange_Change" json:"change,omitempty"`
	NodeName   string                               `protobuf:"bytes,2,opt,name=node_name,json=nodeName" json:"node_name,omitempty"`
	OutputSlot int32                                `protobuf:"varint,3,opt,name=output_slot,json=outputSlot" json:"output_slot,omitempty"`
	DebugOp    string                               `protobuf:"bytes,4,opt,name=debug_op,json=debugOp" json:"debug_op,omitempty"`
}

func (*EventReply_DebugOpStateChange) Descriptor

func (*EventReply_DebugOpStateChange) Descriptor() ([]byte, []int)

func (*EventReply_DebugOpStateChange) GetChange

func (*EventReply_DebugOpStateChange) GetDebugOp

func (m *EventReply_DebugOpStateChange) GetDebugOp() string

func (*EventReply_DebugOpStateChange) GetNodeName

func (m *EventReply_DebugOpStateChange) GetNodeName() string

func (*EventReply_DebugOpStateChange) GetOutputSlot

func (m *EventReply_DebugOpStateChange) GetOutputSlot() int32

func (*EventReply_DebugOpStateChange) ProtoMessage

func (*EventReply_DebugOpStateChange) ProtoMessage()

func (*EventReply_DebugOpStateChange) Reset

func (m *EventReply_DebugOpStateChange) Reset()

func (*EventReply_DebugOpStateChange) String

type EventReply_DebugOpStateChange_Change

type EventReply_DebugOpStateChange_Change int32
const (
	EventReply_DebugOpStateChange_DISABLE EventReply_DebugOpStateChange_Change = 0
	EventReply_DebugOpStateChange_ENABLE  EventReply_DebugOpStateChange_Change = 1
)

func (EventReply_DebugOpStateChange_Change) EnumDescriptor

func (EventReply_DebugOpStateChange_Change) EnumDescriptor() ([]byte, []int)

func (EventReply_DebugOpStateChange_Change) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL