service

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: 4 Imported by: 0

Documentation

Overview

Package service is a generated protocol buffer package.

It is generated from these files:

tensorflow/compiler/xla/service/hlo.proto
tensorflow/compiler/xla/service/session.proto

It has these top-level messages:

HloInstructionProto
HloComputationProto
HloModuleProto
HloOrderingProto
LogicalBufferProto
BufferAllocationProto
HeapSimulatorTrace
BufferAssignmentProto
HloProto
OperationRequest
SessionComputation
SessionModule

Index

Constants

This section is empty.

Variables

View Source
var HeapSimulatorTrace_Event_Kind_name = map[int32]string{
	0: "ALLOC",
	1: "FREE",
	2: "SHARE_WITH",
}
View Source
var HeapSimulatorTrace_Event_Kind_value = map[string]int32{
	"ALLOC":      0,
	"FREE":       1,
	"SHARE_WITH": 2,
}

Functions

This section is empty.

Types

type BufferAllocationProto

type BufferAllocationProto struct {
	Index                       int64                             `protobuf:"varint,1,opt,name=index" json:"index,omitempty"`
	Size                        int64                             `protobuf:"varint,2,opt,name=size" json:"size,omitempty"`
	IsThreadLocal               bool                              `protobuf:"varint,3,opt,name=is_thread_local,json=isThreadLocal" json:"is_thread_local,omitempty"`
	IsReusable                  bool                              `protobuf:"varint,4,opt,name=is_reusable,json=isReusable" json:"is_reusable,omitempty"`
	IsEntryComputationParameter bool                              `` /* 140-byte string literal not displayed */
	ParameterNumber             int64                             `protobuf:"varint,6,opt,name=parameter_number,json=parameterNumber" json:"parameter_number,omitempty"`
	MaybeLiveOut                bool                              `protobuf:"varint,7,opt,name=maybe_live_out,json=maybeLiveOut" json:"maybe_live_out,omitempty"`
	Color                       int64                             `protobuf:"varint,8,opt,name=color" json:"color,omitempty"`
	Assigned                    []*BufferAllocationProto_Assigned `protobuf:"bytes,9,rep,name=assigned" json:"assigned,omitempty"`
}

Serialization of BufferAllocation.

func (*BufferAllocationProto) Descriptor

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

func (*BufferAllocationProto) GetAssigned

func (*BufferAllocationProto) GetColor

func (m *BufferAllocationProto) GetColor() int64

func (*BufferAllocationProto) GetIndex

func (m *BufferAllocationProto) GetIndex() int64

func (*BufferAllocationProto) GetIsEntryComputationParameter

func (m *BufferAllocationProto) GetIsEntryComputationParameter() bool

func (*BufferAllocationProto) GetIsReusable

func (m *BufferAllocationProto) GetIsReusable() bool

func (*BufferAllocationProto) GetIsThreadLocal

func (m *BufferAllocationProto) GetIsThreadLocal() bool

func (*BufferAllocationProto) GetMaybeLiveOut

func (m *BufferAllocationProto) GetMaybeLiveOut() bool

func (*BufferAllocationProto) GetParameterNumber

func (m *BufferAllocationProto) GetParameterNumber() int64

func (*BufferAllocationProto) GetSize

func (m *BufferAllocationProto) GetSize() int64

func (*BufferAllocationProto) ProtoMessage

func (*BufferAllocationProto) ProtoMessage()

func (*BufferAllocationProto) Reset

func (m *BufferAllocationProto) Reset()

func (*BufferAllocationProto) String

func (m *BufferAllocationProto) String() string

type BufferAllocationProto_Assigned

type BufferAllocationProto_Assigned struct {
	LogicalBufferId int64 `protobuf:"varint,1,opt,name=logical_buffer_id,json=logicalBufferId" json:"logical_buffer_id,omitempty"`
	Offset          int64 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
	Size            int64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
}

Assigned represents a single LogicalBuffer that is assigned to this BufferAllocation.

func (*BufferAllocationProto_Assigned) Descriptor

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

func (*BufferAllocationProto_Assigned) GetLogicalBufferId

func (m *BufferAllocationProto_Assigned) GetLogicalBufferId() int64

func (*BufferAllocationProto_Assigned) GetOffset

func (m *BufferAllocationProto_Assigned) GetOffset() int64

func (*BufferAllocationProto_Assigned) GetSize

func (*BufferAllocationProto_Assigned) ProtoMessage

func (*BufferAllocationProto_Assigned) ProtoMessage()

func (*BufferAllocationProto_Assigned) Reset

func (m *BufferAllocationProto_Assigned) Reset()

func (*BufferAllocationProto_Assigned) String

type BufferAssignmentProto

type BufferAssignmentProto struct {
	LogicalBuffers      []*LogicalBufferProto                `protobuf:"bytes,1,rep,name=logical_buffers,json=logicalBuffers" json:"logical_buffers,omitempty"`
	BufferAliases       []*BufferAssignmentProto_BufferAlias `protobuf:"bytes,2,rep,name=buffer_aliases,json=bufferAliases" json:"buffer_aliases,omitempty"`
	BufferAllocations   []*BufferAllocationProto             `protobuf:"bytes,3,rep,name=buffer_allocations,json=bufferAllocations" json:"buffer_allocations,omitempty"`
	HeapSimulatorTraces []*HeapSimulatorTrace                `protobuf:"bytes,4,rep,name=heap_simulator_traces,json=heapSimulatorTraces" json:"heap_simulator_traces,omitempty"`
}

Serialization of BufferAssignment.

func (*BufferAssignmentProto) Descriptor

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

func (*BufferAssignmentProto) GetBufferAliases

func (*BufferAssignmentProto) GetBufferAllocations

func (m *BufferAssignmentProto) GetBufferAllocations() []*BufferAllocationProto

func (*BufferAssignmentProto) GetHeapSimulatorTraces

func (m *BufferAssignmentProto) GetHeapSimulatorTraces() []*HeapSimulatorTrace

func (*BufferAssignmentProto) GetLogicalBuffers

func (m *BufferAssignmentProto) GetLogicalBuffers() []*LogicalBufferProto

func (*BufferAssignmentProto) ProtoMessage

func (*BufferAssignmentProto) ProtoMessage()

func (*BufferAssignmentProto) Reset

func (m *BufferAssignmentProto) Reset()

func (*BufferAssignmentProto) String

func (m *BufferAssignmentProto) String() string

type BufferAssignmentProto_BufferAlias

type BufferAssignmentProto_BufferAlias struct {
	SourceBufferId int64                        `protobuf:"varint,1,opt,name=source_buffer_id,json=sourceBufferId" json:"source_buffer_id,omitempty"`
	Location       *LogicalBufferProto_Location `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"`
}

Alias represents a source LogicalBuffer, and the buffer location that aliases it.

func (*BufferAssignmentProto_BufferAlias) Descriptor

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

func (*BufferAssignmentProto_BufferAlias) GetLocation

func (*BufferAssignmentProto_BufferAlias) GetSourceBufferId

func (m *BufferAssignmentProto_BufferAlias) GetSourceBufferId() int64

func (*BufferAssignmentProto_BufferAlias) ProtoMessage

func (*BufferAssignmentProto_BufferAlias) ProtoMessage()

func (*BufferAssignmentProto_BufferAlias) Reset

func (*BufferAssignmentProto_BufferAlias) String

type HeapSimulatorTrace

type HeapSimulatorTrace struct {
	Events                []*HeapSimulatorTrace_Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"`
	WholeModuleSimulation bool                        `protobuf:"varint,2,opt,name=whole_module_simulation,json=wholeModuleSimulation" json:"whole_module_simulation,omitempty"`
}

A trace of a HeapSimulator run.

func (*HeapSimulatorTrace) Descriptor

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

func (*HeapSimulatorTrace) GetEvents

func (m *HeapSimulatorTrace) GetEvents() []*HeapSimulatorTrace_Event

func (*HeapSimulatorTrace) GetWholeModuleSimulation

func (m *HeapSimulatorTrace) GetWholeModuleSimulation() bool

func (*HeapSimulatorTrace) ProtoMessage

func (*HeapSimulatorTrace) ProtoMessage()

func (*HeapSimulatorTrace) Reset

func (m *HeapSimulatorTrace) Reset()

func (*HeapSimulatorTrace) String

func (m *HeapSimulatorTrace) String() string

type HeapSimulatorTrace_Event

type HeapSimulatorTrace_Event struct {
	Kind HeapSimulatorTrace_Event_Kind `protobuf:"varint,1,opt,name=kind,enum=xla.HeapSimulatorTrace_Event_Kind" json:"kind,omitempty"`
	// The id of the LogicalBuffer that the event applies to.
	BufferId int64 `protobuf:"varint,2,opt,name=buffer_id,json=bufferId" json:"buffer_id,omitempty"`
	// The HloInstruction that the simulation was processing that caused this
	// event to occur, identified by its computation and instruction name. E.g.
	// buffers defined by instruction A are allocated when processing A.
	ComputationName string `protobuf:"bytes,3,opt,name=computation_name,json=computationName" json:"computation_name,omitempty"`
	InstructionName string `protobuf:"bytes,4,opt,name=instruction_name,json=instructionName" json:"instruction_name,omitempty"`
	// The id of the canonical LogicalBuffer that the buffer shares with. Only
	// set for SHARE_WITH events.
	ShareWithCanonicalId int64 `protobuf:"varint,5,opt,name=share_with_canonical_id,json=shareWithCanonicalId" json:"share_with_canonical_id,omitempty"`
}

The trace includes a list of events, where each event describes one action performed by the heap simulator.

func (*HeapSimulatorTrace_Event) Descriptor

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

func (*HeapSimulatorTrace_Event) GetBufferId

func (m *HeapSimulatorTrace_Event) GetBufferId() int64

func (*HeapSimulatorTrace_Event) GetComputationName

func (m *HeapSimulatorTrace_Event) GetComputationName() string

func (*HeapSimulatorTrace_Event) GetInstructionName

func (m *HeapSimulatorTrace_Event) GetInstructionName() string

func (*HeapSimulatorTrace_Event) GetKind

func (*HeapSimulatorTrace_Event) GetShareWithCanonicalId

func (m *HeapSimulatorTrace_Event) GetShareWithCanonicalId() int64

func (*HeapSimulatorTrace_Event) ProtoMessage

func (*HeapSimulatorTrace_Event) ProtoMessage()

func (*HeapSimulatorTrace_Event) Reset

func (m *HeapSimulatorTrace_Event) Reset()

func (*HeapSimulatorTrace_Event) String

func (m *HeapSimulatorTrace_Event) String() string

type HeapSimulatorTrace_Event_Kind

type HeapSimulatorTrace_Event_Kind int32
const (
	HeapSimulatorTrace_Event_ALLOC HeapSimulatorTrace_Event_Kind = 0
	HeapSimulatorTrace_Event_FREE  HeapSimulatorTrace_Event_Kind = 1
	// A buffer was shared with another (canonical) buffer. This is similar to
	// ALLOC, except that instead of allocating a new region of memory, the
	// memory region of the canonical buffer is directly re-used. Multiple
	// buffers may share with the same canonical buffer. The lifetime of the
	// canonical buffer is extended to the union of all lifetimes.
	HeapSimulatorTrace_Event_SHARE_WITH HeapSimulatorTrace_Event_Kind = 2
)

func (HeapSimulatorTrace_Event_Kind) EnumDescriptor

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

func (HeapSimulatorTrace_Event_Kind) String

type HloComputationProto

type HloComputationProto struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The array of instructions is always in a valid dependency order, where
	// operands appear before their users.
	Instructions []*HloInstructionProto `protobuf:"bytes,2,rep,name=instructions" json:"instructions,omitempty"`
}

Serialization of HloComputation.

func (*HloComputationProto) Descriptor

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

func (*HloComputationProto) GetInstructions

func (m *HloComputationProto) GetInstructions() []*HloInstructionProto

func (*HloComputationProto) GetName

func (m *HloComputationProto) GetName() string

func (*HloComputationProto) ProtoMessage

func (*HloComputationProto) ProtoMessage()

func (*HloComputationProto) Reset

func (m *HloComputationProto) Reset()

func (*HloComputationProto) String

func (m *HloComputationProto) String() string

type HloInstructionProto

type HloInstructionProto struct {
	Name                    string          `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Opcode                  string          `protobuf:"bytes,2,opt,name=opcode" json:"opcode,omitempty"`
	Shape                   *xla.Shape      `protobuf:"bytes,3,opt,name=shape" json:"shape,omitempty"`
	OperandNames            []string        `protobuf:"bytes,4,rep,name=operand_names,json=operandNames" json:"operand_names,omitempty"`
	ControlPredecessorNames []string        `protobuf:"bytes,5,rep,name=control_predecessor_names,json=controlPredecessorNames" json:"control_predecessor_names,omitempty"`
	CalledComputationNames  []string        `protobuf:"bytes,6,rep,name=called_computation_names,json=calledComputationNames" json:"called_computation_names,omitempty"`
	Metadata                *xla.OpMetadata `protobuf:"bytes,7,opt,name=metadata" json:"metadata,omitempty"`
	// Literal, only present for kConstant.
	Literal *xla.LiteralProto `protobuf:"bytes,8,opt,name=literal" json:"literal,omitempty"`
	// Parameter info, only present for kParameter.
	ParameterNumber int64  `protobuf:"varint,9,opt,name=parameter_number,json=parameterNumber" json:"parameter_number,omitempty"`
	ParameterName   string `protobuf:"bytes,10,opt,name=parameter_name,json=parameterName" json:"parameter_name,omitempty"`
	// Fusion state, only present for kFusion.
	FusionKind                   string               `protobuf:"bytes,11,opt,name=fusion_kind,json=fusionKind" json:"fusion_kind,omitempty"`
	FusedInstructionsComputation *HloComputationProto `` /* 141-byte string literal not displayed */
	// Index for kGetTupleElement.
	TupleIndex int64 `protobuf:"varint,13,opt,name=tuple_index,json=tupleIndex" json:"tuple_index,omitempty"`
}

Serialization of HloInstruction.

func (*HloInstructionProto) Descriptor

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

func (*HloInstructionProto) GetCalledComputationNames

func (m *HloInstructionProto) GetCalledComputationNames() []string

func (*HloInstructionProto) GetControlPredecessorNames

func (m *HloInstructionProto) GetControlPredecessorNames() []string

func (*HloInstructionProto) GetFusedInstructionsComputation

func (m *HloInstructionProto) GetFusedInstructionsComputation() *HloComputationProto

func (*HloInstructionProto) GetFusionKind

func (m *HloInstructionProto) GetFusionKind() string

func (*HloInstructionProto) GetLiteral

func (m *HloInstructionProto) GetLiteral() *xla.LiteralProto

func (*HloInstructionProto) GetMetadata

func (m *HloInstructionProto) GetMetadata() *xla.OpMetadata

func (*HloInstructionProto) GetName

func (m *HloInstructionProto) GetName() string

func (*HloInstructionProto) GetOpcode

func (m *HloInstructionProto) GetOpcode() string

func (*HloInstructionProto) GetOperandNames

func (m *HloInstructionProto) GetOperandNames() []string

func (*HloInstructionProto) GetParameterName

func (m *HloInstructionProto) GetParameterName() string

func (*HloInstructionProto) GetParameterNumber

func (m *HloInstructionProto) GetParameterNumber() int64

func (*HloInstructionProto) GetShape

func (m *HloInstructionProto) GetShape() *xla.Shape

func (*HloInstructionProto) GetTupleIndex

func (m *HloInstructionProto) GetTupleIndex() int64

func (*HloInstructionProto) ProtoMessage

func (*HloInstructionProto) ProtoMessage()

func (*HloInstructionProto) Reset

func (m *HloInstructionProto) Reset()

func (*HloInstructionProto) String

func (m *HloInstructionProto) String() string

type HloModuleProto

type HloModuleProto struct {
	Name                 string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	EntryComputationName string `protobuf:"bytes,2,opt,name=entry_computation_name,json=entryComputationName" json:"entry_computation_name,omitempty"`
	// The array of computations is always in a valid dependency order, where
	// callees appear before their callers.
	Computations []*HloComputationProto `protobuf:"bytes,3,rep,name=computations" json:"computations,omitempty"`
}

Serialization of HloModule.

func (*HloModuleProto) Descriptor

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

func (*HloModuleProto) GetComputations

func (m *HloModuleProto) GetComputations() []*HloComputationProto

func (*HloModuleProto) GetEntryComputationName

func (m *HloModuleProto) GetEntryComputationName() string

func (*HloModuleProto) GetName

func (m *HloModuleProto) GetName() string

func (*HloModuleProto) ProtoMessage

func (*HloModuleProto) ProtoMessage()

func (*HloModuleProto) Reset

func (m *HloModuleProto) Reset()

func (*HloModuleProto) String

func (m *HloModuleProto) String() string

type HloOrderingProto

type HloOrderingProto struct {
	SequentialComputations []*HloOrderingProto_SequentialComputation `protobuf:"bytes,1,rep,name=sequential_computations,json=sequentialComputations" json:"sequential_computations,omitempty"`
}

Serialization of HloOrdering.

func (*HloOrderingProto) Descriptor

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

func (*HloOrderingProto) GetSequentialComputations

func (m *HloOrderingProto) GetSequentialComputations() []*HloOrderingProto_SequentialComputation

func (*HloOrderingProto) ProtoMessage

func (*HloOrderingProto) ProtoMessage()

func (*HloOrderingProto) Reset

func (m *HloOrderingProto) Reset()

func (*HloOrderingProto) String

func (m *HloOrderingProto) String() string

type HloOrderingProto_SequentialComputation

type HloOrderingProto_SequentialComputation struct {
	ComputationName  string   `protobuf:"bytes,1,opt,name=computation_name,json=computationName" json:"computation_name,omitempty"`
	InstructionNames []string `protobuf:"bytes,2,rep,name=instruction_names,json=instructionNames" json:"instruction_names,omitempty"`
}

NOTE: currently only sequential orderings are serialized.

func (*HloOrderingProto_SequentialComputation) Descriptor

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

func (*HloOrderingProto_SequentialComputation) GetComputationName

func (m *HloOrderingProto_SequentialComputation) GetComputationName() string

func (*HloOrderingProto_SequentialComputation) GetInstructionNames

func (m *HloOrderingProto_SequentialComputation) GetInstructionNames() []string

func (*HloOrderingProto_SequentialComputation) ProtoMessage

func (*HloOrderingProto_SequentialComputation) Reset

func (*HloOrderingProto_SequentialComputation) String

type HloProto

type HloProto struct {
	HloModule        *HloModuleProto        `protobuf:"bytes,1,opt,name=hlo_module,json=hloModule" json:"hlo_module,omitempty"`
	HloOrdering      *HloOrderingProto      `protobuf:"bytes,2,opt,name=hlo_ordering,json=hloOrdering" json:"hlo_ordering,omitempty"`
	BufferAssignment *BufferAssignmentProto `protobuf:"bytes,3,opt,name=buffer_assignment,json=bufferAssignment" json:"buffer_assignment,omitempty"`
}

Grouping message that contains all of the information above.

func (*HloProto) Descriptor

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

func (*HloProto) GetBufferAssignment

func (m *HloProto) GetBufferAssignment() *BufferAssignmentProto

func (*HloProto) GetHloModule

func (m *HloProto) GetHloModule() *HloModuleProto

func (*HloProto) GetHloOrdering

func (m *HloProto) GetHloOrdering() *HloOrderingProto

func (*HloProto) ProtoMessage

func (*HloProto) ProtoMessage()

func (*HloProto) Reset

func (m *HloProto) Reset()

func (*HloProto) String

func (m *HloProto) String() string

type LogicalBufferProto

type LogicalBufferProto struct {
	Id   int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Size int64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"`
	// The location where the buffer is defined.
	DefinedAt *LogicalBufferProto_Location `protobuf:"bytes,3,opt,name=defined_at,json=definedAt" json:"defined_at,omitempty"`
	Color     int64                        `protobuf:"varint,4,opt,name=color" json:"color,omitempty"`
}

Serialization of LogicalBuffer.

func (*LogicalBufferProto) Descriptor

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

func (*LogicalBufferProto) GetColor

func (m *LogicalBufferProto) GetColor() int64

func (*LogicalBufferProto) GetDefinedAt

func (*LogicalBufferProto) GetId

func (m *LogicalBufferProto) GetId() int64

func (*LogicalBufferProto) GetSize

func (m *LogicalBufferProto) GetSize() int64

func (*LogicalBufferProto) ProtoMessage

func (*LogicalBufferProto) ProtoMessage()

func (*LogicalBufferProto) Reset

func (m *LogicalBufferProto) Reset()

func (*LogicalBufferProto) String

func (m *LogicalBufferProto) String() string

type LogicalBufferProto_Location

type LogicalBufferProto_Location struct {
	// NOTE: module_name isn't necessary, since all LogicalBuffers are
	// associated with a single HloModule.
	ComputationName string  `protobuf:"bytes,1,opt,name=computation_name,json=computationName" json:"computation_name,omitempty"`
	InstructionName string  `protobuf:"bytes,2,opt,name=instruction_name,json=instructionName" json:"instruction_name,omitempty"`
	ShapeIndex      []int64 `protobuf:"varint,3,rep,packed,name=shape_index,json=shapeIndex" json:"shape_index,omitempty"`
}

Location represents an instruction and its shape index, which uniquely identifies a point where a buffer is needed.

func (*LogicalBufferProto_Location) Descriptor

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

func (*LogicalBufferProto_Location) GetComputationName

func (m *LogicalBufferProto_Location) GetComputationName() string

func (*LogicalBufferProto_Location) GetInstructionName

func (m *LogicalBufferProto_Location) GetInstructionName() string

func (*LogicalBufferProto_Location) GetShapeIndex

func (m *LogicalBufferProto_Location) GetShapeIndex() []int64

func (*LogicalBufferProto_Location) ProtoMessage

func (*LogicalBufferProto_Location) ProtoMessage()

func (*LogicalBufferProto_Location) Reset

func (m *LogicalBufferProto_Location) Reset()

func (*LogicalBufferProto_Location) String

func (m *LogicalBufferProto_Location) String() string

type OperationRequest

type OperationRequest struct {
	OutputHandle *xla.ComputationDataHandle `protobuf:"bytes,1,opt,name=output_handle,json=outputHandle" json:"output_handle,omitempty"`
	OutputShape  *xla.Shape                 `protobuf:"bytes,2,opt,name=output_shape,json=outputShape" json:"output_shape,omitempty"`
	// For operations which call embedded computations such as "Map", these are
	// the version(s) that the embedded computation should be called at. A version
	// value of a computation is the ComputationDataHandle of the root of the
	// computation at the point in time.
	//
	// "Call", "Map", "Reduce", and "ReduceWindow" operations take a single
	// embedded computation so this field will have a single value for those
	// operations.
	//
	// "While" operation takes two; index 0 is the "condition" version and index 1
	// is the "body" version.
	EmbeddedComputationVersions []int64 `` /* 145-byte string literal not displayed */
	// The actual request, which in itself is a tagged union of all possible
	// operation request types.
	Request *xla.OpRequest `protobuf:"bytes,4,opt,name=request" json:"request,omitempty"`
}

Describes a single operation request.

func (*OperationRequest) Descriptor

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

func (*OperationRequest) GetEmbeddedComputationVersions

func (m *OperationRequest) GetEmbeddedComputationVersions() []int64

func (*OperationRequest) GetOutputHandle

func (m *OperationRequest) GetOutputHandle() *xla.ComputationDataHandle

func (*OperationRequest) GetOutputShape

func (m *OperationRequest) GetOutputShape() *xla.Shape

func (*OperationRequest) GetRequest

func (m *OperationRequest) GetRequest() *xla.OpRequest

func (*OperationRequest) ProtoMessage

func (*OperationRequest) ProtoMessage()

func (*OperationRequest) Reset

func (m *OperationRequest) Reset()

func (*OperationRequest) String

func (m *OperationRequest) String() string

type SessionComputation

type SessionComputation struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The ComputationHandle used to refer to this computation in the XLA
	// service.
	ComputationHandle *xla.ComputationHandle `protobuf:"bytes,2,opt,name=computation_handle,json=computationHandle" json:"computation_handle,omitempty"`
	// Map from ComputationDataHandle value to operation request. The highest
	// ComputationDataHandle value corresponds to the root of the computation.
	Requests map[int64]*OperationRequest `` /* 137-byte string literal not displayed */
}

Describes a sequence of operation requests which define an XLA computation.

func (*SessionComputation) Descriptor

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

func (*SessionComputation) GetComputationHandle

func (m *SessionComputation) GetComputationHandle() *xla.ComputationHandle

func (*SessionComputation) GetName

func (m *SessionComputation) GetName() string

func (*SessionComputation) GetRequests

func (m *SessionComputation) GetRequests() map[int64]*OperationRequest

func (*SessionComputation) ProtoMessage

func (*SessionComputation) ProtoMessage()

func (*SessionComputation) Reset

func (m *SessionComputation) Reset()

func (*SessionComputation) String

func (m *SessionComputation) String() string

type SessionModule

type SessionModule struct {
	// The entry computation, which was requested for serialization. This may have
	// referred to embedded computations, which are reflected below.
	Entry *SessionComputation `protobuf:"bytes,1,opt,name=entry" json:"entry,omitempty"`
	// Embedded computations that are transitively referred to by the entry
	// computation.
	EmbeddedComputations []*SessionComputation `protobuf:"bytes,2,rep,name=embedded_computations,json=embeddedComputations" json:"embedded_computations,omitempty"`
	// The arguments passed to the computation.
	Arguments []*xla.LiteralProto `protobuf:"bytes,3,rep,name=arguments" json:"arguments,omitempty"`
	// The result of the computation.
	Result *xla.LiteralProto `protobuf:"bytes,4,opt,name=result" json:"result,omitempty"`
	// The name of the platform used to run the computation.
	ExecutionPlatform string `protobuf:"bytes,5,opt,name=execution_platform,json=executionPlatform" json:"execution_platform,omitempty"`
}

Describes a group of SessionComputations with an "entry point" computation that may refer to the other non-entry (AKA embedded) computations.

This message is used to serialize a computation that has been built via the XLA service API, along with its dependencies, for purposes such as analysis/replay/file-storage.

func (*SessionModule) Descriptor

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

func (*SessionModule) GetArguments

func (m *SessionModule) GetArguments() []*xla.LiteralProto

func (*SessionModule) GetEmbeddedComputations

func (m *SessionModule) GetEmbeddedComputations() []*SessionComputation

func (*SessionModule) GetEntry

func (m *SessionModule) GetEntry() *SessionComputation

func (*SessionModule) GetExecutionPlatform

func (m *SessionModule) GetExecutionPlatform() string

func (*SessionModule) GetResult

func (m *SessionModule) GetResult() *xla.LiteralProto

func (*SessionModule) ProtoMessage

func (*SessionModule) ProtoMessage()

func (*SessionModule) Reset

func (m *SessionModule) Reset()

func (*SessionModule) String

func (m *SessionModule) String() string

Jump to

Keyboard shortcuts

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