xla

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 xla is a generated protocol buffer package.

It is generated from these files:

tensorflow/compiler/xla/xla.proto
tensorflow/compiler/xla/xla_data.proto

It has these top-level messages:

DebugOptions
ExecutionOptions
SnapshotComputationRequest
SnapshotComputationResponse
LoadComputationSnapshotRequest
LoadComputationSnapshotResponse
GetDeviceHandlesRequest
GetDeviceHandlesResponse
TransferToClientRequest
TransferToClientResponse
TransferToServerRequest
TransferToServerResponse
TransferToInfeedRequest
TransferToInfeedResponse
TransferFromOutfeedRequest
TransferFromOutfeedResponse
ResetDeviceRequest
ResetDeviceResponse
ComputationStatsRequest
ComputationStatsResponse
ComputationRequest
ComputationResponse
CreateChannelHandleRequest
CreateChannelHandleResponse
UnregisterRequest
UnregisterResponse
SetReturnValueRequest
SetReturnValueResponse
ExecuteRequest
ExecuteParallelRequest
ExecuteResponse
ExecuteParallelResponse
ExecuteAsyncRequest
ExecuteAsyncResponse
WaitForExecutionRequest
WaitForExecutionResponse
IsConstantRequest
IsConstantResponse
ComputeConstantRequest
ComputeConstantResponse
DeconstructTupleRequest
DeconstructTupleResponse
LoadDataRequest
LoadDataResponse
SpecializeRequest
SpecializeResponse
GetShapeRequest
GetShapeResponse
GetComputationShapeRequest
GetComputationShapeResponse
UnpackRequest
UnpackResponse
PaddingConfig
Layout
Shape
ProgramShape
ComputationStats
OpMetadata
ExecutionProfile
ComputationHandle
ExecutionHandle
GlobalDataHandle
ComputationDataHandle
DeviceHandle
ChannelHandle
DeviceAssignmentProto
LiteralProto
WindowDimension
Window
ConstantRequest
GetTupleElementRequest
SliceRequest
DynamicSliceRequest
DynamicUpdateSliceRequest
ConvolutionDimensionNumbers
ConvolveRequest
InfeedRequest
OutfeedRequest
CallRequest
CustomCallRequest
MapRequest
ReduceRequest
ReduceWindowRequest
BatchNormTrainingRequest
CrossReplicaSumRequest
SelectAndScatterRequest
ReverseRequest
BroadcastRequest
PadRequest
ReshapeRequest
TransposeRequest
ParameterRequest
GetLocalShapeRequest
GetLocalShapeResponse
TraceRequest
ConvertRequest
ConcatenateRequest
WhileRequest
UnaryOpRequest
BinaryOpRequest
RngRequest
TernaryOpRequest
VariadicOpRequest
ReducePrecisionRequest
SendRequest
RecvRequest
OpRequest
OpResponse

Index

Constants

This section is empty.

Variables

View Source
var BinaryOperation_name = map[int32]string{
	0:  "BINOP_INVALID",
	1:  "BINOP_ADD",
	2:  "BINOP_DIV",
	3:  "BINOP_MUL",
	4:  "BINOP_SUB",
	5:  "BINOP_EQ",
	6:  "BINOP_GE",
	7:  "BINOP_GT",
	8:  "BINOP_LE",
	9:  "BINOP_LT",
	10: "BINOP_NE",
	12: "BINOP_DOT",
	13: "BINOP_INDEX",
	14: "BINOP_MAX",
	15: "BINOP_MIN",
	16: "BINOP_POW",
	17: "BINOP_REM",
	18: "BINOP_LOGICAL_AND",
	19: "BINOP_LOGICAL_OR",
}
View Source
var BinaryOperation_value = map[string]int32{
	"BINOP_INVALID":     0,
	"BINOP_ADD":         1,
	"BINOP_DIV":         2,
	"BINOP_MUL":         3,
	"BINOP_SUB":         4,
	"BINOP_EQ":          5,
	"BINOP_GE":          6,
	"BINOP_GT":          7,
	"BINOP_LE":          8,
	"BINOP_LT":          9,
	"BINOP_NE":          10,
	"BINOP_DOT":         12,
	"BINOP_INDEX":       13,
	"BINOP_MAX":         14,
	"BINOP_MIN":         15,
	"BINOP_POW":         16,
	"BINOP_REM":         17,
	"BINOP_LOGICAL_AND": 18,
	"BINOP_LOGICAL_OR":  19,
}
View Source
var PaddingValue_name = map[int32]string{
	0: "INVALID_PAD",
	1: "ZERO_PAD",
	2: "ONE_PAD",
	3: "LOWEST_PAD",
	4: "HIGHEST_PAD",
	5: "UNKNOWN_PAD",
}
View Source
var PaddingValue_value = map[string]int32{
	"INVALID_PAD": 0,
	"ZERO_PAD":    1,
	"ONE_PAD":     2,
	"LOWEST_PAD":  3,
	"HIGHEST_PAD": 4,
	"UNKNOWN_PAD": 5,
}
View Source
var PrimitiveType_name = map[int32]string{
	0:  "PRIMITIVE_TYPE_INVALID",
	1:  "PRED",
	2:  "S8",
	3:  "S16",
	4:  "S32",
	5:  "S64",
	6:  "U8",
	7:  "U16",
	8:  "U32",
	9:  "U64",
	10: "F16",
	11: "F32",
	12: "F64",
	13: "TUPLE",
	14: "OPAQUE",
}
View Source
var PrimitiveType_value = map[string]int32{
	"PRIMITIVE_TYPE_INVALID": 0,
	"PRED":                   1,
	"S8":                     2,
	"S16":                    3,
	"S32":                    4,
	"S64":                    5,
	"U8":                     6,
	"U16":                    7,
	"U32":                    8,
	"U64":                    9,
	"F16":                    10,
	"F32":                    11,
	"F64":                    12,
	"TUPLE":                  13,
	"OPAQUE":                 14,
}
View Source
var RandomDistribution_name = map[int32]string{
	0: "RNG_INVALID",
	1: "RNG_UNIFORM",
	2: "RNG_NORMAL",
	3: "RNG_BERNOULLI",
}
View Source
var RandomDistribution_value = map[string]int32{
	"RNG_INVALID":   0,
	"RNG_UNIFORM":   1,
	"RNG_NORMAL":    2,
	"RNG_BERNOULLI": 3,
}
View Source
var TernaryOperation_name = map[int32]string{
	0: "TRIOP_INVALID",
	1: "TRIOP_SELECT",
	2: "TRIOP_UPDATE",
	3: "TRIOP_CLAMP",
}
View Source
var TernaryOperation_value = map[string]int32{
	"TRIOP_INVALID": 0,
	"TRIOP_SELECT":  1,
	"TRIOP_UPDATE":  2,
	"TRIOP_CLAMP":   3,
}
View Source
var UnaryOperation_name = map[int32]string{
	0:  "UNOP_INVALID",
	1:  "UNOP_LOGICAL_NOT",
	2:  "UNOP_EXP",
	3:  "UNOP_NEGATE",
	4:  "UNOP_SORT",
	5:  "UNOP_TANH",
	6:  "UNOP_LOG",
	7:  "UNOP_FLOOR",
	8:  "UNOP_CEIL",
	9:  "UNOP_ABS",
	10: "UNOP_SIGN",
	11: "UNOP_IS_FINITE",
	12: "UNOP_COS",
}
View Source
var UnaryOperation_value = map[string]int32{
	"UNOP_INVALID":     0,
	"UNOP_LOGICAL_NOT": 1,
	"UNOP_EXP":         2,
	"UNOP_NEGATE":      3,
	"UNOP_SORT":        4,
	"UNOP_TANH":        5,
	"UNOP_LOG":         6,
	"UNOP_FLOOR":       7,
	"UNOP_CEIL":        8,
	"UNOP_ABS":         9,
	"UNOP_SIGN":        10,
	"UNOP_IS_FINITE":   11,
	"UNOP_COS":         12,
}
View Source
var VariadicOperation_name = map[int32]string{
	0: "VAROP_INVALID",
	1: "VAROP_TUPLE",
}
View Source
var VariadicOperation_value = map[string]int32{
	"VAROP_INVALID": 0,
	"VAROP_TUPLE":   1,
}

Functions

This section is empty.

Types

type BatchNormTrainingRequest

type BatchNormTrainingRequest struct {
	Operand      *ComputationDataHandle `protobuf:"bytes,1,opt,name=operand" json:"operand,omitempty"`
	Scale        *ComputationDataHandle `protobuf:"bytes,2,opt,name=scale" json:"scale,omitempty"`
	Offset       *ComputationDataHandle `protobuf:"bytes,3,opt,name=offset" json:"offset,omitempty"`
	Epsilon      float32                `protobuf:"fixed32,4,opt,name=epsilon" json:"epsilon,omitempty"`
	FeatureIndex int64                  `protobuf:"varint,5,opt,name=feature_index,json=featureIndex" json:"feature_index,omitempty"`
}

func (*BatchNormTrainingRequest) Descriptor

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

func (*BatchNormTrainingRequest) GetEpsilon

func (m *BatchNormTrainingRequest) GetEpsilon() float32

func (*BatchNormTrainingRequest) GetFeatureIndex

func (m *BatchNormTrainingRequest) GetFeatureIndex() int64

func (*BatchNormTrainingRequest) GetOffset

func (*BatchNormTrainingRequest) GetOperand

func (*BatchNormTrainingRequest) GetScale

func (*BatchNormTrainingRequest) ProtoMessage

func (*BatchNormTrainingRequest) ProtoMessage()

func (*BatchNormTrainingRequest) Reset

func (m *BatchNormTrainingRequest) Reset()

func (*BatchNormTrainingRequest) String

func (m *BatchNormTrainingRequest) String() string

type BinaryOpRequest

type BinaryOpRequest struct {
	Binop               BinaryOperation        `protobuf:"varint,2,opt,name=binop,enum=xla.BinaryOperation" json:"binop,omitempty"`
	Lhs                 *ComputationDataHandle `protobuf:"bytes,3,opt,name=lhs" json:"lhs,omitempty"`
	Rhs                 *ComputationDataHandle `protobuf:"bytes,4,opt,name=rhs" json:"rhs,omitempty"`
	BroadcastDimensions []int64                `protobuf:"varint,5,rep,packed,name=broadcast_dimensions,json=broadcastDimensions" json:"broadcast_dimensions,omitempty"`
}

func (*BinaryOpRequest) Descriptor

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

func (*BinaryOpRequest) GetBinop

func (m *BinaryOpRequest) GetBinop() BinaryOperation

func (*BinaryOpRequest) GetBroadcastDimensions

func (m *BinaryOpRequest) GetBroadcastDimensions() []int64

func (*BinaryOpRequest) GetLhs

func (*BinaryOpRequest) GetRhs

func (*BinaryOpRequest) ProtoMessage

func (*BinaryOpRequest) ProtoMessage()

func (*BinaryOpRequest) Reset

func (m *BinaryOpRequest) Reset()

func (*BinaryOpRequest) String

func (m *BinaryOpRequest) String() string

type BinaryOperation

type BinaryOperation int32
const (
	BinaryOperation_BINOP_INVALID BinaryOperation = 0
	// Arithmetic operations.
	BinaryOperation_BINOP_ADD BinaryOperation = 1
	BinaryOperation_BINOP_DIV BinaryOperation = 2
	BinaryOperation_BINOP_MUL BinaryOperation = 3
	BinaryOperation_BINOP_SUB BinaryOperation = 4
	// Comparison operators.
	BinaryOperation_BINOP_EQ BinaryOperation = 5
	BinaryOperation_BINOP_GE BinaryOperation = 6
	BinaryOperation_BINOP_GT BinaryOperation = 7
	BinaryOperation_BINOP_LE BinaryOperation = 8
	BinaryOperation_BINOP_LT BinaryOperation = 9
	BinaryOperation_BINOP_NE BinaryOperation = 10
	// Dot product, matrix multiply.
	BinaryOperation_BINOP_DOT BinaryOperation = 12
	// Indexes into the LHS with the RHS.
	//
	// If the RHS is higher-rank, this is a gather operation.
	//
	// Note: currently out of bounds indices may crash the underlying XLA
	// machine.
	BinaryOperation_BINOP_INDEX BinaryOperation = 13
	// Element-wise maximum.
	BinaryOperation_BINOP_MAX BinaryOperation = 14
	// Element-wise minimum.
	BinaryOperation_BINOP_MIN BinaryOperation = 15
	// Raises the left-hand-side to the right-hand-side power.
	BinaryOperation_BINOP_POW BinaryOperation = 16
	// Remainder operation.
	BinaryOperation_BINOP_REM BinaryOperation = 17
	// Logical operators
	BinaryOperation_BINOP_LOGICAL_AND BinaryOperation = 18
	BinaryOperation_BINOP_LOGICAL_OR  BinaryOperation = 19
)

func (BinaryOperation) EnumDescriptor

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

func (BinaryOperation) String

func (x BinaryOperation) String() string

type BroadcastRequest

type BroadcastRequest struct {
	Operand        *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	BroadcastSizes []int64                `protobuf:"varint,3,rep,packed,name=broadcast_sizes,json=broadcastSizes" json:"broadcast_sizes,omitempty"`
}

func (*BroadcastRequest) Descriptor

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

func (*BroadcastRequest) GetBroadcastSizes

func (m *BroadcastRequest) GetBroadcastSizes() []int64

func (*BroadcastRequest) GetOperand

func (m *BroadcastRequest) GetOperand() *ComputationDataHandle

func (*BroadcastRequest) ProtoMessage

func (*BroadcastRequest) ProtoMessage()

func (*BroadcastRequest) Reset

func (m *BroadcastRequest) Reset()

func (*BroadcastRequest) String

func (m *BroadcastRequest) String() string

type CallRequest

type CallRequest struct {
	ToApply  *ComputationHandle       `protobuf:"bytes,2,opt,name=to_apply,json=toApply" json:"to_apply,omitempty"`
	Operands []*ComputationDataHandle `protobuf:"bytes,3,rep,name=operands" json:"operands,omitempty"`
}

func (*CallRequest) Descriptor

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

func (*CallRequest) GetOperands

func (m *CallRequest) GetOperands() []*ComputationDataHandle

func (*CallRequest) GetToApply

func (m *CallRequest) GetToApply() *ComputationHandle

func (*CallRequest) ProtoMessage

func (*CallRequest) ProtoMessage()

func (*CallRequest) Reset

func (m *CallRequest) Reset()

func (*CallRequest) String

func (m *CallRequest) String() string

type ChannelHandle

type ChannelHandle struct {
	Handle int64 `protobuf:"varint,1,opt,name=handle" json:"handle,omitempty"`
}

Handle given to a user to represent a channel between two computations via a Send and Recv instruction pair. Channels are unbuffered, so Send Send instructions will be blocked until the data is transferred.

func (*ChannelHandle) Descriptor

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

func (*ChannelHandle) GetHandle

func (m *ChannelHandle) GetHandle() int64

func (*ChannelHandle) ProtoMessage

func (*ChannelHandle) ProtoMessage()

func (*ChannelHandle) Reset

func (m *ChannelHandle) Reset()

func (*ChannelHandle) String

func (m *ChannelHandle) String() string

type ComputationDataHandle

type ComputationDataHandle struct {
	Handle int64 `protobuf:"varint,1,opt,name=handle" json:"handle,omitempty"`
}

Handle given to a user that represents a data result in a computation. This is used to pass to subsequent computations that depends upon the data as an operand.

func (*ComputationDataHandle) Descriptor

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

func (*ComputationDataHandle) GetHandle

func (m *ComputationDataHandle) GetHandle() int64

func (*ComputationDataHandle) ProtoMessage

func (*ComputationDataHandle) ProtoMessage()

func (*ComputationDataHandle) Reset

func (m *ComputationDataHandle) Reset()

func (*ComputationDataHandle) String

func (m *ComputationDataHandle) String() string

type ComputationHandle

type ComputationHandle struct {
	Handle int64 `protobuf:"varint,1,opt,name=handle" json:"handle,omitempty"`
}

Handle given to a user that represents a computation that the user builds up before execution.

func (*ComputationHandle) Descriptor

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

func (*ComputationHandle) GetHandle

func (m *ComputationHandle) GetHandle() int64

func (*ComputationHandle) ProtoMessage

func (*ComputationHandle) ProtoMessage()

func (*ComputationHandle) Reset

func (m *ComputationHandle) Reset()

func (*ComputationHandle) String

func (m *ComputationHandle) String() string

type ComputationRequest

type ComputationRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*ComputationRequest) Descriptor

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

func (*ComputationRequest) GetName

func (m *ComputationRequest) GetName() string

func (*ComputationRequest) ProtoMessage

func (*ComputationRequest) ProtoMessage()

func (*ComputationRequest) Reset

func (m *ComputationRequest) Reset()

func (*ComputationRequest) String

func (m *ComputationRequest) String() string

type ComputationResponse

type ComputationResponse struct {
	Computation *ComputationHandle `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
}

func (*ComputationResponse) Descriptor

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

func (*ComputationResponse) GetComputation

func (m *ComputationResponse) GetComputation() *ComputationHandle

func (*ComputationResponse) ProtoMessage

func (*ComputationResponse) ProtoMessage()

func (*ComputationResponse) Reset

func (m *ComputationResponse) Reset()

func (*ComputationResponse) String

func (m *ComputationResponse) String() string

type ComputationStats

type ComputationStats struct {
	// The number of floating point operations in the computation.
	FlopCount float64 `protobuf:"fixed64,1,opt,name=flop_count,json=flopCount" json:"flop_count,omitempty"`
	// The number of transcendental operations (e.g., exp) in the computation.
	TranscendentalCount float64 `protobuf:"fixed64,2,opt,name=transcendental_count,json=transcendentalCount" json:"transcendental_count,omitempty"`
}

Statistics of a computation.

func (*ComputationStats) Descriptor

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

func (*ComputationStats) GetFlopCount

func (m *ComputationStats) GetFlopCount() float64

func (*ComputationStats) GetTranscendentalCount

func (m *ComputationStats) GetTranscendentalCount() float64

func (*ComputationStats) ProtoMessage

func (*ComputationStats) ProtoMessage()

func (*ComputationStats) Reset

func (m *ComputationStats) Reset()

func (*ComputationStats) String

func (m *ComputationStats) String() string

type ComputationStatsRequest

type ComputationStatsRequest struct {
	Computation *ComputationHandle `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
}

func (*ComputationStatsRequest) Descriptor

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

func (*ComputationStatsRequest) GetComputation

func (m *ComputationStatsRequest) GetComputation() *ComputationHandle

func (*ComputationStatsRequest) ProtoMessage

func (*ComputationStatsRequest) ProtoMessage()

func (*ComputationStatsRequest) Reset

func (m *ComputationStatsRequest) Reset()

func (*ComputationStatsRequest) String

func (m *ComputationStatsRequest) String() string

type ComputationStatsResponse

type ComputationStatsResponse struct {
	Stats *ComputationStats `protobuf:"bytes,1,opt,name=stats" json:"stats,omitempty"`
}

func (*ComputationStatsResponse) Descriptor

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

func (*ComputationStatsResponse) GetStats

func (*ComputationStatsResponse) ProtoMessage

func (*ComputationStatsResponse) ProtoMessage()

func (*ComputationStatsResponse) Reset

func (m *ComputationStatsResponse) Reset()

func (*ComputationStatsResponse) String

func (m *ComputationStatsResponse) String() string

type ComputeConstantRequest

type ComputeConstantRequest struct {
	Computation  *ComputationHandle     `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
	Operand      *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	OutputLayout *Layout                `protobuf:"bytes,3,opt,name=output_layout,json=outputLayout" json:"output_layout,omitempty"`
}

func (*ComputeConstantRequest) Descriptor

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

func (*ComputeConstantRequest) GetComputation

func (m *ComputeConstantRequest) GetComputation() *ComputationHandle

func (*ComputeConstantRequest) GetOperand

func (*ComputeConstantRequest) GetOutputLayout

func (m *ComputeConstantRequest) GetOutputLayout() *Layout

func (*ComputeConstantRequest) ProtoMessage

func (*ComputeConstantRequest) ProtoMessage()

func (*ComputeConstantRequest) Reset

func (m *ComputeConstantRequest) Reset()

func (*ComputeConstantRequest) String

func (m *ComputeConstantRequest) String() string

type ComputeConstantResponse

type ComputeConstantResponse struct {
	Output *GlobalDataHandle `protobuf:"bytes,1,opt,name=output" json:"output,omitempty"`
}

func (*ComputeConstantResponse) Descriptor

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

func (*ComputeConstantResponse) GetOutput

func (m *ComputeConstantResponse) GetOutput() *GlobalDataHandle

func (*ComputeConstantResponse) ProtoMessage

func (*ComputeConstantResponse) ProtoMessage()

func (*ComputeConstantResponse) Reset

func (m *ComputeConstantResponse) Reset()

func (*ComputeConstantResponse) String

func (m *ComputeConstantResponse) String() string

type ConcatenateRequest

type ConcatenateRequest struct {
	Operands []*ComputationDataHandle `protobuf:"bytes,2,rep,name=operands" json:"operands,omitempty"`
	// The dimension in which we concatenate; e.g. if you had dimension arrays of
	// [4, 1] and [5, 1], you'd concatenate in dimension 0 to produce a [9, 1].
	// Attempting to concatenate those in dimension 1 would produce an error, as
	// 4 != 5 (and there is no ragged array support).
	Dimension int64 `protobuf:"varint,3,opt,name=dimension" json:"dimension,omitempty"`
}

func (*ConcatenateRequest) Descriptor

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

func (*ConcatenateRequest) GetDimension

func (m *ConcatenateRequest) GetDimension() int64

func (*ConcatenateRequest) GetOperands

func (m *ConcatenateRequest) GetOperands() []*ComputationDataHandle

func (*ConcatenateRequest) ProtoMessage

func (*ConcatenateRequest) ProtoMessage()

func (*ConcatenateRequest) Reset

func (m *ConcatenateRequest) Reset()

func (*ConcatenateRequest) String

func (m *ConcatenateRequest) String() string

type ConstantRequest

type ConstantRequest struct {
	Literal *LiteralProto `protobuf:"bytes,2,opt,name=literal" json:"literal,omitempty"`
}

func (*ConstantRequest) Descriptor

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

func (*ConstantRequest) GetLiteral

func (m *ConstantRequest) GetLiteral() *LiteralProto

func (*ConstantRequest) ProtoMessage

func (*ConstantRequest) ProtoMessage()

func (*ConstantRequest) Reset

func (m *ConstantRequest) Reset()

func (*ConstantRequest) String

func (m *ConstantRequest) String() string

type ConvertRequest

type ConvertRequest struct {
	Operand        *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	NewElementType PrimitiveType          `protobuf:"varint,3,opt,name=new_element_type,json=newElementType,enum=xla.PrimitiveType" json:"new_element_type,omitempty"`
}

func (*ConvertRequest) Descriptor

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

func (*ConvertRequest) GetNewElementType

func (m *ConvertRequest) GetNewElementType() PrimitiveType

func (*ConvertRequest) GetOperand

func (m *ConvertRequest) GetOperand() *ComputationDataHandle

func (*ConvertRequest) ProtoMessage

func (*ConvertRequest) ProtoMessage()

func (*ConvertRequest) Reset

func (m *ConvertRequest) Reset()

func (*ConvertRequest) String

func (m *ConvertRequest) String() string

type ConvolutionDimensionNumbers

type ConvolutionDimensionNumbers struct {
	// The number of the dimension that represents batch in the input
	// (lhs) and output.
	BatchDimension int64 `protobuf:"varint,1,opt,name=batch_dimension,json=batchDimension" json:"batch_dimension,omitempty"`
	// The number of the dimension that represents features in the input
	// (lhs) and output.
	FeatureDimension int64 `protobuf:"varint,2,opt,name=feature_dimension,json=featureDimension" json:"feature_dimension,omitempty"`
	// The dimension numbers for the spatial dimensions that the window
	// moves through in the input (lhs) and output.
	SpatialDimensions []int64 `protobuf:"varint,5,rep,packed,name=spatial_dimensions,json=spatialDimensions" json:"spatial_dimensions,omitempty"`
	// The number of the dimension that represents input features in the
	// convolutional kernel (rhs).
	KernelInputFeatureDimension int64 `` /* 140-byte string literal not displayed */
	// The number of the dimension that represents output features in
	// the convolutional kernel (rhs).
	KernelOutputFeatureDimension int64 `` /* 143-byte string literal not displayed */
	// The dimension numbers for the spatial dimensions that the window
	// moves through in the kernel (rhs). window.strides(0) is the
	// stride in the kernel_spatial_dimensions(0) dimension.
	KernelSpatialDimensions []int64 `` /* 133-byte string literal not displayed */
}

func (*ConvolutionDimensionNumbers) Descriptor

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

func (*ConvolutionDimensionNumbers) GetBatchDimension

func (m *ConvolutionDimensionNumbers) GetBatchDimension() int64

func (*ConvolutionDimensionNumbers) GetFeatureDimension

func (m *ConvolutionDimensionNumbers) GetFeatureDimension() int64

func (*ConvolutionDimensionNumbers) GetKernelInputFeatureDimension

func (m *ConvolutionDimensionNumbers) GetKernelInputFeatureDimension() int64

func (*ConvolutionDimensionNumbers) GetKernelOutputFeatureDimension

func (m *ConvolutionDimensionNumbers) GetKernelOutputFeatureDimension() int64

func (*ConvolutionDimensionNumbers) GetKernelSpatialDimensions

func (m *ConvolutionDimensionNumbers) GetKernelSpatialDimensions() []int64

func (*ConvolutionDimensionNumbers) GetSpatialDimensions

func (m *ConvolutionDimensionNumbers) GetSpatialDimensions() []int64

func (*ConvolutionDimensionNumbers) ProtoMessage

func (*ConvolutionDimensionNumbers) ProtoMessage()

func (*ConvolutionDimensionNumbers) Reset

func (m *ConvolutionDimensionNumbers) Reset()

func (*ConvolutionDimensionNumbers) String

func (m *ConvolutionDimensionNumbers) String() string

type ConvolveRequest

type ConvolveRequest struct {
	Lhs              *ComputationDataHandle       `protobuf:"bytes,2,opt,name=lhs" json:"lhs,omitempty"`
	Rhs              *ComputationDataHandle       `protobuf:"bytes,3,opt,name=rhs" json:"rhs,omitempty"`
	Window           *Window                      `protobuf:"bytes,4,opt,name=window" json:"window,omitempty"`
	DimensionNumbers *ConvolutionDimensionNumbers `protobuf:"bytes,5,opt,name=dimension_numbers,json=dimensionNumbers" json:"dimension_numbers,omitempty"`
}

func (*ConvolveRequest) Descriptor

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

func (*ConvolveRequest) GetDimensionNumbers

func (m *ConvolveRequest) GetDimensionNumbers() *ConvolutionDimensionNumbers

func (*ConvolveRequest) GetLhs

func (*ConvolveRequest) GetRhs

func (*ConvolveRequest) GetWindow

func (m *ConvolveRequest) GetWindow() *Window

func (*ConvolveRequest) ProtoMessage

func (*ConvolveRequest) ProtoMessage()

func (*ConvolveRequest) Reset

func (m *ConvolveRequest) Reset()

func (*ConvolveRequest) String

func (m *ConvolveRequest) String() string

type CreateChannelHandleRequest

type CreateChannelHandleRequest struct {
}

func (*CreateChannelHandleRequest) Descriptor

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

func (*CreateChannelHandleRequest) ProtoMessage

func (*CreateChannelHandleRequest) ProtoMessage()

func (*CreateChannelHandleRequest) Reset

func (m *CreateChannelHandleRequest) Reset()

func (*CreateChannelHandleRequest) String

func (m *CreateChannelHandleRequest) String() string

type CreateChannelHandleResponse

type CreateChannelHandleResponse struct {
	Channel *ChannelHandle `protobuf:"bytes,1,opt,name=channel" json:"channel,omitempty"`
}

func (*CreateChannelHandleResponse) Descriptor

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

func (*CreateChannelHandleResponse) GetChannel

func (m *CreateChannelHandleResponse) GetChannel() *ChannelHandle

func (*CreateChannelHandleResponse) ProtoMessage

func (*CreateChannelHandleResponse) ProtoMessage()

func (*CreateChannelHandleResponse) Reset

func (m *CreateChannelHandleResponse) Reset()

func (*CreateChannelHandleResponse) String

func (m *CreateChannelHandleResponse) String() string

type CrossReplicaSumRequest

type CrossReplicaSumRequest struct {
	Operand *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
}

func (*CrossReplicaSumRequest) Descriptor

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

func (*CrossReplicaSumRequest) GetOperand

func (*CrossReplicaSumRequest) ProtoMessage

func (*CrossReplicaSumRequest) ProtoMessage()

func (*CrossReplicaSumRequest) Reset

func (m *CrossReplicaSumRequest) Reset()

func (*CrossReplicaSumRequest) String

func (m *CrossReplicaSumRequest) String() string

type CustomCallRequest

type CustomCallRequest struct {
	CallTargetName string                   `protobuf:"bytes,2,opt,name=call_target_name,json=callTargetName" json:"call_target_name,omitempty"`
	Operands       []*ComputationDataHandle `protobuf:"bytes,3,rep,name=operands" json:"operands,omitempty"`
	Shape          *Shape                   `protobuf:"bytes,4,opt,name=shape" json:"shape,omitempty"`
}

func (*CustomCallRequest) Descriptor

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

func (*CustomCallRequest) GetCallTargetName

func (m *CustomCallRequest) GetCallTargetName() string

func (*CustomCallRequest) GetOperands

func (m *CustomCallRequest) GetOperands() []*ComputationDataHandle

func (*CustomCallRequest) GetShape

func (m *CustomCallRequest) GetShape() *Shape

func (*CustomCallRequest) ProtoMessage

func (*CustomCallRequest) ProtoMessage()

func (*CustomCallRequest) Reset

func (m *CustomCallRequest) Reset()

func (*CustomCallRequest) String

func (m *CustomCallRequest) String() string

type DebugOptions

type DebugOptions struct {
	// HLO modules matching this regex will be dumped to a .dot file throughout
	// various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
	// dump *all* HLO modules.
	XlaGenerateHloGraph string `protobuf:"bytes,1,opt,name=xla_generate_hlo_graph,json=xlaGenerateHloGraph" json:"xla_generate_hlo_graph,omitempty"`
	// List of HLO passes to disable. These names must exactly match the pass
	// names as specified by the HloPassInterface::name() method.
	XlaDisableHloPasses []string `protobuf:"bytes,2,rep,name=xla_disable_hlo_passes,json=xlaDisableHloPasses" json:"xla_disable_hlo_passes,omitempty"`
	// Numerical optimization level for the XLA compiler backend; the specific
	// interpretation of this value is left to the backends.
	XlaBackendOptimizationLevel int32 `` /* 140-byte string literal not displayed */
	// When true, "unsafe" mathematical optimizations are enabled. These
	// transformations include but are not limited to:
	//
	//  - Reducing the precision of operations (e.g. using an approximate sin
	//    function, or transforming x/y into x * (1/y)).
	//  - Assuming that operations never produce or consume NaN or +/- Inf.
	//  - Assuming that +0 and -0 are indistinguishable.
	XlaEnableFastMath bool `protobuf:"varint,4,opt,name=xla_enable_fast_math,json=xlaEnableFastMath" json:"xla_enable_fast_math,omitempty"`
	// Embed the compiler IR as a string in the executable.
	XlaEmbedIrInExecutable bool `` /* 127-byte string literal not displayed */
	// Dump compilation artifacts as JSON into this directory.
	XlaDumpDebugJsonTo string `protobuf:"bytes,6,opt,name=xla_dump_debug_json_to,json=xlaDumpDebugJsonTo" json:"xla_dump_debug_json_to,omitempty"`
	// Path to directory with cuda/ptx tools and libraries.
	XlaGpuCudaDataDir string `protobuf:"bytes,7,opt,name=xla_gpu_cuda_data_dir,json=xlaGpuCudaDataDir" json:"xla_gpu_cuda_data_dir,omitempty"`
	// Enable flush-to-zero semantics in the GPU backend.
	XlaGpuFtz bool `protobuf:"varint,8,opt,name=xla_gpu_ftz,json=xlaGpuFtz" json:"xla_gpu_ftz,omitempty"`
	// Extra options to pass to the compilation backend; specific interpretation
	// of these values is left to the backend.
	XlaBackendExtraOptions map[string]string `` /* 200-byte string literal not displayed */
}

Debugging options for XLA. These options may change at any time - there are no guarantees about backward or forward compatibility for these fields.

func (*DebugOptions) Descriptor

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

func (*DebugOptions) GetXlaBackendExtraOptions

func (m *DebugOptions) GetXlaBackendExtraOptions() map[string]string

func (*DebugOptions) GetXlaBackendOptimizationLevel

func (m *DebugOptions) GetXlaBackendOptimizationLevel() int32

func (*DebugOptions) GetXlaDisableHloPasses

func (m *DebugOptions) GetXlaDisableHloPasses() []string

func (*DebugOptions) GetXlaDumpDebugJsonTo

func (m *DebugOptions) GetXlaDumpDebugJsonTo() string

func (*DebugOptions) GetXlaEmbedIrInExecutable

func (m *DebugOptions) GetXlaEmbedIrInExecutable() bool

func (*DebugOptions) GetXlaEnableFastMath

func (m *DebugOptions) GetXlaEnableFastMath() bool

func (*DebugOptions) GetXlaGenerateHloGraph

func (m *DebugOptions) GetXlaGenerateHloGraph() string

func (*DebugOptions) GetXlaGpuCudaDataDir

func (m *DebugOptions) GetXlaGpuCudaDataDir() string

func (*DebugOptions) GetXlaGpuFtz

func (m *DebugOptions) GetXlaGpuFtz() bool

func (*DebugOptions) ProtoMessage

func (*DebugOptions) ProtoMessage()

func (*DebugOptions) Reset

func (m *DebugOptions) Reset()

func (*DebugOptions) String

func (m *DebugOptions) String() string

type DeconstructTupleRequest

type DeconstructTupleRequest struct {
	TupleHandle *GlobalDataHandle `protobuf:"bytes,2,opt,name=tuple_handle,json=tupleHandle" json:"tuple_handle,omitempty"`
}

func (*DeconstructTupleRequest) Descriptor

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

func (*DeconstructTupleRequest) GetTupleHandle

func (m *DeconstructTupleRequest) GetTupleHandle() *GlobalDataHandle

func (*DeconstructTupleRequest) ProtoMessage

func (*DeconstructTupleRequest) ProtoMessage()

func (*DeconstructTupleRequest) Reset

func (m *DeconstructTupleRequest) Reset()

func (*DeconstructTupleRequest) String

func (m *DeconstructTupleRequest) String() string

type DeconstructTupleResponse

type DeconstructTupleResponse struct {
	ElementHandles []*GlobalDataHandle `protobuf:"bytes,1,rep,name=element_handles,json=elementHandles" json:"element_handles,omitempty"`
}

func (*DeconstructTupleResponse) Descriptor

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

func (*DeconstructTupleResponse) GetElementHandles

func (m *DeconstructTupleResponse) GetElementHandles() []*GlobalDataHandle

func (*DeconstructTupleResponse) ProtoMessage

func (*DeconstructTupleResponse) ProtoMessage()

func (*DeconstructTupleResponse) Reset

func (m *DeconstructTupleResponse) Reset()

func (*DeconstructTupleResponse) String

func (m *DeconstructTupleResponse) String() string

type DeviceAssignmentProto

type DeviceAssignmentProto struct {
	ReplicaCount       int32                                      `protobuf:"varint,1,opt,name=replica_count,json=replicaCount" json:"replica_count,omitempty"`
	ComputationCount   int32                                      `protobuf:"varint,2,opt,name=computation_count,json=computationCount" json:"computation_count,omitempty"`
	ComputationDevices []*DeviceAssignmentProto_ComputationDevice `protobuf:"bytes,3,rep,name=computation_devices,json=computationDevices" json:"computation_devices,omitempty"`
}

DeviceAssignmentProto is a serialized form of DeviceAssignment class, which represents the device ids assigned to a set of replicated computations. See xla::DeviceAssignment class comment for more details.

func (*DeviceAssignmentProto) Descriptor

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

func (*DeviceAssignmentProto) GetComputationCount

func (m *DeviceAssignmentProto) GetComputationCount() int32

func (*DeviceAssignmentProto) GetComputationDevices

func (m *DeviceAssignmentProto) GetComputationDevices() []*DeviceAssignmentProto_ComputationDevice

func (*DeviceAssignmentProto) GetReplicaCount

func (m *DeviceAssignmentProto) GetReplicaCount() int32

func (*DeviceAssignmentProto) ProtoMessage

func (*DeviceAssignmentProto) ProtoMessage()

func (*DeviceAssignmentProto) Reset

func (m *DeviceAssignmentProto) Reset()

func (*DeviceAssignmentProto) String

func (m *DeviceAssignmentProto) String() string

type DeviceAssignmentProto_ComputationDevice

type DeviceAssignmentProto_ComputationDevice struct {
	ReplicaDeviceIds []int32 `protobuf:"varint,1,rep,packed,name=replica_device_ids,json=replicaDeviceIds" json:"replica_device_ids,omitempty"`
}

Each logical computation runs on replica_count physical devices. ComputationDevice represents the device ids assinged to the replicas.

func (*DeviceAssignmentProto_ComputationDevice) Descriptor

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

func (*DeviceAssignmentProto_ComputationDevice) GetReplicaDeviceIds

func (m *DeviceAssignmentProto_ComputationDevice) GetReplicaDeviceIds() []int32

func (*DeviceAssignmentProto_ComputationDevice) ProtoMessage

func (*DeviceAssignmentProto_ComputationDevice) Reset

func (*DeviceAssignmentProto_ComputationDevice) String

type DeviceHandle

type DeviceHandle struct {
	Handle int64 `protobuf:"varint,1,opt,name=handle" json:"handle,omitempty"`
	// The number of model-parallel virtual devices that communicate via XLA
	// Send/Recv instructions.
	DeviceCount int64 `protobuf:"varint,2,opt,name=device_count,json=deviceCount" json:"device_count,omitempty"`
}

Handle given to a user that represents a replicated virtual device. Each replicated device represents N physical devices for execution where N is the number of replicas.

func (*DeviceHandle) Descriptor

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

func (*DeviceHandle) GetDeviceCount

func (m *DeviceHandle) GetDeviceCount() int64

func (*DeviceHandle) GetHandle

func (m *DeviceHandle) GetHandle() int64

func (*DeviceHandle) ProtoMessage

func (*DeviceHandle) ProtoMessage()

func (*DeviceHandle) Reset

func (m *DeviceHandle) Reset()

func (*DeviceHandle) String

func (m *DeviceHandle) String() string

type DynamicSliceRequest

type DynamicSliceRequest struct {
	// Operand from which to slice at dynamic 'start_indices'.
	Operand *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	// Dynamically computed 'start_indices' for slice operation.
	StartIndices *ComputationDataHandle `protobuf:"bytes,3,opt,name=start_indices,json=startIndices" json:"start_indices,omitempty"`
	// Slice sizes for each dimension (note that indices calculations are computed
	// modulo dimension sizes to avoid out-of-bound array accesses).
	SliceSizes []int64 `protobuf:"varint,4,rep,packed,name=slice_sizes,json=sliceSizes" json:"slice_sizes,omitempty"`
}

func (*DynamicSliceRequest) Descriptor

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

func (*DynamicSliceRequest) GetOperand

func (m *DynamicSliceRequest) GetOperand() *ComputationDataHandle

func (*DynamicSliceRequest) GetSliceSizes

func (m *DynamicSliceRequest) GetSliceSizes() []int64

func (*DynamicSliceRequest) GetStartIndices

func (m *DynamicSliceRequest) GetStartIndices() *ComputationDataHandle

func (*DynamicSliceRequest) ProtoMessage

func (*DynamicSliceRequest) ProtoMessage()

func (*DynamicSliceRequest) Reset

func (m *DynamicSliceRequest) Reset()

func (*DynamicSliceRequest) String

func (m *DynamicSliceRequest) String() string

type DynamicUpdateSliceRequest

type DynamicUpdateSliceRequest struct {
	// Operand on which slice 'update' is to be applied.
	Operand *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	// The slice update to apply to 'operand'.
	Update *ComputationDataHandle `protobuf:"bytes,3,opt,name=update" json:"update,omitempty"`
	// Dynamically computed start indices for the update slice operation.
	StartIndices *ComputationDataHandle `protobuf:"bytes,4,opt,name=start_indices,json=startIndices" json:"start_indices,omitempty"`
}

func (*DynamicUpdateSliceRequest) Descriptor

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

func (*DynamicUpdateSliceRequest) GetOperand

func (*DynamicUpdateSliceRequest) GetStartIndices

func (m *DynamicUpdateSliceRequest) GetStartIndices() *ComputationDataHandle

func (*DynamicUpdateSliceRequest) GetUpdate

func (*DynamicUpdateSliceRequest) ProtoMessage

func (*DynamicUpdateSliceRequest) ProtoMessage()

func (*DynamicUpdateSliceRequest) Reset

func (m *DynamicUpdateSliceRequest) Reset()

func (*DynamicUpdateSliceRequest) String

func (m *DynamicUpdateSliceRequest) String() string

type ExecuteAsyncRequest

type ExecuteAsyncRequest struct {
	Computation *ComputationHandle  `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
	Arguments   []*GlobalDataHandle `protobuf:"bytes,2,rep,name=arguments" json:"arguments,omitempty"`
	// Options that affect how XLA compiles and runs code to service this request.
	ExecutionOptions *ExecutionOptions `protobuf:"bytes,6,opt,name=execution_options,json=executionOptions" json:"execution_options,omitempty"`
}

func (*ExecuteAsyncRequest) Descriptor

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

func (*ExecuteAsyncRequest) GetArguments

func (m *ExecuteAsyncRequest) GetArguments() []*GlobalDataHandle

func (*ExecuteAsyncRequest) GetComputation

func (m *ExecuteAsyncRequest) GetComputation() *ComputationHandle

func (*ExecuteAsyncRequest) GetExecutionOptions

func (m *ExecuteAsyncRequest) GetExecutionOptions() *ExecutionOptions

func (*ExecuteAsyncRequest) ProtoMessage

func (*ExecuteAsyncRequest) ProtoMessage()

func (*ExecuteAsyncRequest) Reset

func (m *ExecuteAsyncRequest) Reset()

func (*ExecuteAsyncRequest) String

func (m *ExecuteAsyncRequest) String() string

type ExecuteAsyncResponse

type ExecuteAsyncResponse struct {
	// A handle to the execution launched asynchronously.
	Execution *ExecutionHandle `protobuf:"bytes,1,opt,name=execution" json:"execution,omitempty"`
}

func (*ExecuteAsyncResponse) Descriptor

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

func (*ExecuteAsyncResponse) GetExecution

func (m *ExecuteAsyncResponse) GetExecution() *ExecutionHandle

func (*ExecuteAsyncResponse) ProtoMessage

func (*ExecuteAsyncResponse) ProtoMessage()

func (*ExecuteAsyncResponse) Reset

func (m *ExecuteAsyncResponse) Reset()

func (*ExecuteAsyncResponse) String

func (m *ExecuteAsyncResponse) String() string

type ExecuteParallelRequest

type ExecuteParallelRequest struct {
	Requests []*ExecuteRequest `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"`
}

func (*ExecuteParallelRequest) Descriptor

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

func (*ExecuteParallelRequest) GetRequests

func (m *ExecuteParallelRequest) GetRequests() []*ExecuteRequest

func (*ExecuteParallelRequest) ProtoMessage

func (*ExecuteParallelRequest) ProtoMessage()

func (*ExecuteParallelRequest) Reset

func (m *ExecuteParallelRequest) Reset()

func (*ExecuteParallelRequest) String

func (m *ExecuteParallelRequest) String() string

type ExecuteParallelResponse

type ExecuteParallelResponse struct {
	Responses []*ExecuteResponse `protobuf:"bytes,1,rep,name=responses" json:"responses,omitempty"`
}

func (*ExecuteParallelResponse) Descriptor

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

func (*ExecuteParallelResponse) GetResponses

func (m *ExecuteParallelResponse) GetResponses() []*ExecuteResponse

func (*ExecuteParallelResponse) ProtoMessage

func (*ExecuteParallelResponse) ProtoMessage()

func (*ExecuteParallelResponse) Reset

func (m *ExecuteParallelResponse) Reset()

func (*ExecuteParallelResponse) String

func (m *ExecuteParallelResponse) String() string

type ExecuteRequest

type ExecuteRequest struct {
	Computation *ComputationHandle  `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
	Arguments   []*GlobalDataHandle `protobuf:"bytes,2,rep,name=arguments" json:"arguments,omitempty"`
	// This optional field specifies a particular device to run the computation.
	// If not provided, the default device will be chosen.
	DeviceHandle *DeviceHandle `protobuf:"bytes,5,opt,name=device_handle,json=deviceHandle" json:"device_handle,omitempty"`
	// Options that affect how XLA compiles and runs code to service this request.
	ExecutionOptions *ExecutionOptions `protobuf:"bytes,6,opt,name=execution_options,json=executionOptions" json:"execution_options,omitempty"`
}

func (*ExecuteRequest) Descriptor

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

func (*ExecuteRequest) GetArguments

func (m *ExecuteRequest) GetArguments() []*GlobalDataHandle

func (*ExecuteRequest) GetComputation

func (m *ExecuteRequest) GetComputation() *ComputationHandle

func (*ExecuteRequest) GetDeviceHandle

func (m *ExecuteRequest) GetDeviceHandle() *DeviceHandle

func (*ExecuteRequest) GetExecutionOptions

func (m *ExecuteRequest) GetExecutionOptions() *ExecutionOptions

func (*ExecuteRequest) ProtoMessage

func (*ExecuteRequest) ProtoMessage()

func (*ExecuteRequest) Reset

func (m *ExecuteRequest) Reset()

func (*ExecuteRequest) String

func (m *ExecuteRequest) String() string

type ExecuteResponse

type ExecuteResponse struct {
	Output  *GlobalDataHandle `protobuf:"bytes,1,opt,name=output" json:"output,omitempty"`
	Profile *ExecutionProfile `protobuf:"bytes,2,opt,name=profile" json:"profile,omitempty"`
}

func (*ExecuteResponse) Descriptor

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

func (*ExecuteResponse) GetOutput

func (m *ExecuteResponse) GetOutput() *GlobalDataHandle

func (*ExecuteResponse) GetProfile

func (m *ExecuteResponse) GetProfile() *ExecutionProfile

func (*ExecuteResponse) ProtoMessage

func (*ExecuteResponse) ProtoMessage()

func (*ExecuteResponse) Reset

func (m *ExecuteResponse) Reset()

func (*ExecuteResponse) String

func (m *ExecuteResponse) String() string

type ExecutionHandle

type ExecutionHandle struct {
	Handle int64 `protobuf:"varint,1,opt,name=handle" json:"handle,omitempty"`
}

Handle given to a user that represents an execution that the user launched asynchronously on the device.

func (*ExecutionHandle) Descriptor

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

func (*ExecutionHandle) GetHandle

func (m *ExecutionHandle) GetHandle() int64

func (*ExecutionHandle) ProtoMessage

func (*ExecutionHandle) ProtoMessage()

func (*ExecutionHandle) Reset

func (m *ExecutionHandle) Reset()

func (*ExecutionHandle) String

func (m *ExecutionHandle) String() string

type ExecutionOptions

type ExecutionOptions struct {
	// This optional field's layout is used as a hint when storing the output of
	// this computation.  Subsequent transfers of this output array to the client
	// may be faster when using this layout.
	//
	// We use a Shape here to accommodate computations that return a tuple.
	ShapeWithOutputLayout *Shape `protobuf:"bytes,2,opt,name=shape_with_output_layout,json=shapeWithOutputLayout" json:"shape_with_output_layout,omitempty"`
	// Used to seed random-number generators used in this computation.  If this is
	// 0, we generate a seed ourselves.
	//
	// TODO(b/32083678): Changing the seed unnecessarily forces a recompilation.
	Seed         uint64        `protobuf:"varint,3,opt,name=seed" json:"seed,omitempty"`
	DebugOptions *DebugOptions `protobuf:"bytes,4,opt,name=debug_options,json=debugOptions" json:"debug_options,omitempty"`
}

These settings control how XLA compiles and/or runs code. Not all settings will have an effect on every platform.

When adding new fields, keep in mind that boolean fields default to false.

func (*ExecutionOptions) Descriptor

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

func (*ExecutionOptions) GetDebugOptions

func (m *ExecutionOptions) GetDebugOptions() *DebugOptions

func (*ExecutionOptions) GetSeed

func (m *ExecutionOptions) GetSeed() uint64

func (*ExecutionOptions) GetShapeWithOutputLayout

func (m *ExecutionOptions) GetShapeWithOutputLayout() *Shape

func (*ExecutionOptions) ProtoMessage

func (*ExecutionOptions) ProtoMessage()

func (*ExecutionOptions) Reset

func (m *ExecutionOptions) Reset()

func (*ExecutionOptions) String

func (m *ExecutionOptions) String() string

type ExecutionProfile

type ExecutionProfile struct {
	// Whether the executable was read from the compilation cache.
	CompilationCacheHit bool `protobuf:"varint,1,opt,name=compilation_cache_hit,json=compilationCacheHit" json:"compilation_cache_hit,omitempty"`
	// The time in milliseconds spent to compile the computation. This only set if
	// the executable was not read from the compilation cache
	// (compilation_cache_hit == false).
	CompileTimeMs int64 `protobuf:"varint,2,opt,name=compile_time_ms,json=compileTimeMs" json:"compile_time_ms,omitempty"`
	// The number of cycles spent for the computation. This does not include the
	// time taken for the data transfers between the host and the device. This is
	// a target-dependent field and only used for debugging purposes.
	ComputeCycleCount int64 `protobuf:"varint,3,opt,name=compute_cycle_count,json=computeCycleCount" json:"compute_cycle_count,omitempty"`
	// The time in nanoseconds spent for the computation, without data transfer.
	ComputeTimeNs int64 `protobuf:"varint,4,opt,name=compute_time_ns,json=computeTimeNs" json:"compute_time_ns,omitempty"`
	// The time in nanoseconds spent for the entire computation, including the
	// result data transfer time. Current implementation does not spend any cycles
	// for the input data transfer since the memory is initialized with the proper
	// values before the execution.
	ComputeAndTransferTimeNs int64 `` /* 133-byte string literal not displayed */
}

Profile data from the execution of a computation.

func (*ExecutionProfile) Descriptor

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

func (*ExecutionProfile) GetCompilationCacheHit

func (m *ExecutionProfile) GetCompilationCacheHit() bool

func (*ExecutionProfile) GetCompileTimeMs

func (m *ExecutionProfile) GetCompileTimeMs() int64

func (*ExecutionProfile) GetComputeAndTransferTimeNs

func (m *ExecutionProfile) GetComputeAndTransferTimeNs() int64

func (*ExecutionProfile) GetComputeCycleCount

func (m *ExecutionProfile) GetComputeCycleCount() int64

func (*ExecutionProfile) GetComputeTimeNs

func (m *ExecutionProfile) GetComputeTimeNs() int64

func (*ExecutionProfile) ProtoMessage

func (*ExecutionProfile) ProtoMessage()

func (*ExecutionProfile) Reset

func (m *ExecutionProfile) Reset()

func (*ExecutionProfile) String

func (m *ExecutionProfile) String() string

type GetComputationShapeRequest

type GetComputationShapeRequest struct {
	Computation *ComputationHandle `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
}

func (*GetComputationShapeRequest) Descriptor

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

func (*GetComputationShapeRequest) GetComputation

func (m *GetComputationShapeRequest) GetComputation() *ComputationHandle

func (*GetComputationShapeRequest) ProtoMessage

func (*GetComputationShapeRequest) ProtoMessage()

func (*GetComputationShapeRequest) Reset

func (m *GetComputationShapeRequest) Reset()

func (*GetComputationShapeRequest) String

func (m *GetComputationShapeRequest) String() string

type GetComputationShapeResponse

type GetComputationShapeResponse struct {
	ProgramShape *ProgramShape `protobuf:"bytes,1,opt,name=program_shape,json=programShape" json:"program_shape,omitempty"`
}

func (*GetComputationShapeResponse) Descriptor

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

func (*GetComputationShapeResponse) GetProgramShape

func (m *GetComputationShapeResponse) GetProgramShape() *ProgramShape

func (*GetComputationShapeResponse) ProtoMessage

func (*GetComputationShapeResponse) ProtoMessage()

func (*GetComputationShapeResponse) Reset

func (m *GetComputationShapeResponse) Reset()

func (*GetComputationShapeResponse) String

func (m *GetComputationShapeResponse) String() string

type GetDeviceHandlesRequest

type GetDeviceHandlesRequest struct {
	DeviceCount int64 `protobuf:"varint,1,opt,name=device_count,json=deviceCount" json:"device_count,omitempty"`
}

func (*GetDeviceHandlesRequest) Descriptor

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

func (*GetDeviceHandlesRequest) GetDeviceCount

func (m *GetDeviceHandlesRequest) GetDeviceCount() int64

func (*GetDeviceHandlesRequest) ProtoMessage

func (*GetDeviceHandlesRequest) ProtoMessage()

func (*GetDeviceHandlesRequest) Reset

func (m *GetDeviceHandlesRequest) Reset()

func (*GetDeviceHandlesRequest) String

func (m *GetDeviceHandlesRequest) String() string

type GetDeviceHandlesResponse

type GetDeviceHandlesResponse struct {
	DeviceHandles []*DeviceHandle `protobuf:"bytes,1,rep,name=device_handles,json=deviceHandles" json:"device_handles,omitempty"`
}

func (*GetDeviceHandlesResponse) Descriptor

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

func (*GetDeviceHandlesResponse) GetDeviceHandles

func (m *GetDeviceHandlesResponse) GetDeviceHandles() []*DeviceHandle

func (*GetDeviceHandlesResponse) ProtoMessage

func (*GetDeviceHandlesResponse) ProtoMessage()

func (*GetDeviceHandlesResponse) Reset

func (m *GetDeviceHandlesResponse) Reset()

func (*GetDeviceHandlesResponse) String

func (m *GetDeviceHandlesResponse) String() string

type GetLocalShapeRequest

type GetLocalShapeRequest struct {
	Computation *ComputationHandle     `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
	Operand     *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
}

func (*GetLocalShapeRequest) Descriptor

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

func (*GetLocalShapeRequest) GetComputation

func (m *GetLocalShapeRequest) GetComputation() *ComputationHandle

func (*GetLocalShapeRequest) GetOperand

func (*GetLocalShapeRequest) ProtoMessage

func (*GetLocalShapeRequest) ProtoMessage()

func (*GetLocalShapeRequest) Reset

func (m *GetLocalShapeRequest) Reset()

func (*GetLocalShapeRequest) String

func (m *GetLocalShapeRequest) String() string

type GetLocalShapeResponse

type GetLocalShapeResponse struct {
	Shape *Shape `protobuf:"bytes,1,opt,name=shape" json:"shape,omitempty"`
}

func (*GetLocalShapeResponse) Descriptor

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

func (*GetLocalShapeResponse) GetShape

func (m *GetLocalShapeResponse) GetShape() *Shape

func (*GetLocalShapeResponse) ProtoMessage

func (*GetLocalShapeResponse) ProtoMessage()

func (*GetLocalShapeResponse) Reset

func (m *GetLocalShapeResponse) Reset()

func (*GetLocalShapeResponse) String

func (m *GetLocalShapeResponse) String() string

type GetShapeRequest

type GetShapeRequest struct {
	Data *GlobalDataHandle `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}

func (*GetShapeRequest) Descriptor

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

func (*GetShapeRequest) GetData

func (m *GetShapeRequest) GetData() *GlobalDataHandle

func (*GetShapeRequest) ProtoMessage

func (*GetShapeRequest) ProtoMessage()

func (*GetShapeRequest) Reset

func (m *GetShapeRequest) Reset()

func (*GetShapeRequest) String

func (m *GetShapeRequest) String() string

type GetShapeResponse

type GetShapeResponse struct {
	Shape *Shape `protobuf:"bytes,1,opt,name=shape" json:"shape,omitempty"`
}

func (*GetShapeResponse) Descriptor

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

func (*GetShapeResponse) GetShape

func (m *GetShapeResponse) GetShape() *Shape

func (*GetShapeResponse) ProtoMessage

func (*GetShapeResponse) ProtoMessage()

func (*GetShapeResponse) Reset

func (m *GetShapeResponse) Reset()

func (*GetShapeResponse) String

func (m *GetShapeResponse) String() string

type GetTupleElementRequest

type GetTupleElementRequest struct {
	Operand *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	Index   int64                  `protobuf:"varint,3,opt,name=index" json:"index,omitempty"`
}

func (*GetTupleElementRequest) Descriptor

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

func (*GetTupleElementRequest) GetIndex

func (m *GetTupleElementRequest) GetIndex() int64

func (*GetTupleElementRequest) GetOperand

func (*GetTupleElementRequest) ProtoMessage

func (*GetTupleElementRequest) ProtoMessage()

func (*GetTupleElementRequest) Reset

func (m *GetTupleElementRequest) Reset()

func (*GetTupleElementRequest) String

func (m *GetTupleElementRequest) String() string

type GlobalDataHandle

type GlobalDataHandle struct {
	Handle int64 `protobuf:"varint,1,opt,name=handle" json:"handle,omitempty"`
}

Handle given to a user that represents a globally accessible allocation. Contrast this against a ComputationDataHandle, which is not globally accessible, since it only exists within a specific computation.

func (*GlobalDataHandle) Descriptor

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

func (*GlobalDataHandle) GetHandle

func (m *GlobalDataHandle) GetHandle() int64

func (*GlobalDataHandle) ProtoMessage

func (*GlobalDataHandle) ProtoMessage()

func (*GlobalDataHandle) Reset

func (m *GlobalDataHandle) Reset()

func (*GlobalDataHandle) String

func (m *GlobalDataHandle) String() string

type InfeedRequest

type InfeedRequest struct {
	// The shape of the data returned by reading the device's infeed buffer.
	Shape *Shape `protobuf:"bytes,2,opt,name=shape" json:"shape,omitempty"`
	// Additional infeed configuration for the backend.
	Config []byte `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
}

func (*InfeedRequest) Descriptor

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

func (*InfeedRequest) GetConfig

func (m *InfeedRequest) GetConfig() []byte

func (*InfeedRequest) GetShape

func (m *InfeedRequest) GetShape() *Shape

func (*InfeedRequest) ProtoMessage

func (*InfeedRequest) ProtoMessage()

func (*InfeedRequest) Reset

func (m *InfeedRequest) Reset()

func (*InfeedRequest) String

func (m *InfeedRequest) String() string

type IsConstantRequest

type IsConstantRequest struct {
	Computation *ComputationHandle     `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
	Operand     *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
}

func (*IsConstantRequest) Descriptor

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

func (*IsConstantRequest) GetComputation

func (m *IsConstantRequest) GetComputation() *ComputationHandle

func (*IsConstantRequest) GetOperand

func (m *IsConstantRequest) GetOperand() *ComputationDataHandle

func (*IsConstantRequest) ProtoMessage

func (*IsConstantRequest) ProtoMessage()

func (*IsConstantRequest) Reset

func (m *IsConstantRequest) Reset()

func (*IsConstantRequest) String

func (m *IsConstantRequest) String() string

type IsConstantResponse

type IsConstantResponse struct {
	IsConstant bool `protobuf:"varint,1,opt,name=is_constant,json=isConstant" json:"is_constant,omitempty"`
}

func (*IsConstantResponse) Descriptor

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

func (*IsConstantResponse) GetIsConstant

func (m *IsConstantResponse) GetIsConstant() bool

func (*IsConstantResponse) ProtoMessage

func (*IsConstantResponse) ProtoMessage()

func (*IsConstantResponse) Reset

func (m *IsConstantResponse) Reset()

func (*IsConstantResponse) String

func (m *IsConstantResponse) String() string

type Layout

type Layout struct {
	// Sequence of dimension numbers, from minor (fastest varying index) to major
	// (slowest varying index). This field is required.
	MinorToMajor []int64 `protobuf:"varint,1,rep,packed,name=minor_to_major,json=minorToMajor" json:"minor_to_major,omitempty"`
	// The width to which the layout of each dimension is padded up
	// to. If present, the size of the padded_dimensions must equal the
	// rank of the shape. The padding appears at the end of a dimension,
	// not at the beginning. This kind of padding, unlike padding in
	// e.g. convolution, is not part of the shape.
	PaddedDimensions []int64 `protobuf:"varint,2,rep,packed,name=padded_dimensions,json=paddedDimensions" json:"padded_dimensions,omitempty"`
	// Describes the values in the padding specified by
	// padded_dimensions.
	PaddingValue PaddingValue `protobuf:"varint,3,opt,name=padding_value,json=paddingValue,enum=xla.PaddingValue" json:"padding_value,omitempty"`
}

A layout describes how the array is placed in (1D) memory space. This includes the minor-to-major ordering of dimensions within a shape, as well as any padding present in those dimensions.

Clients must specify the layouts of input Literals to the computation. Layouts specified in interior operations which take Shapes (for example, Convert) are ignored.

See the XLA documentation for more information on shapes and layouts.

func (*Layout) Descriptor

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

func (*Layout) GetMinorToMajor

func (m *Layout) GetMinorToMajor() []int64

func (*Layout) GetPaddedDimensions

func (m *Layout) GetPaddedDimensions() []int64

func (*Layout) GetPaddingValue

func (m *Layout) GetPaddingValue() PaddingValue

func (*Layout) ProtoMessage

func (*Layout) ProtoMessage()

func (*Layout) Reset

func (m *Layout) Reset()

func (*Layout) String

func (m *Layout) String() string

type LiteralProto

type LiteralProto struct {
	Shape         *Shape          `protobuf:"bytes,1,opt,name=shape" json:"shape,omitempty"`
	Preds         []bool          `protobuf:"varint,2,rep,packed,name=preds" json:"preds,omitempty"`
	U8S           []byte          `protobuf:"bytes,3,opt,name=u8s,proto3" json:"u8s,omitempty"`
	S32S          []int32         `protobuf:"varint,4,rep,packed,name=s32s" json:"s32s,omitempty"`
	S64S          []int64         `protobuf:"varint,5,rep,packed,name=s64s" json:"s64s,omitempty"`
	U32S          []uint32        `protobuf:"varint,6,rep,packed,name=u32s" json:"u32s,omitempty"`
	U64S          []uint64        `protobuf:"varint,7,rep,packed,name=u64s" json:"u64s,omitempty"`
	F32S          []float32       `protobuf:"fixed32,8,rep,packed,name=f32s" json:"f32s,omitempty"`
	F64S          []float64       `protobuf:"fixed64,9,rep,packed,name=f64s" json:"f64s,omitempty"`
	TupleLiterals []*LiteralProto `protobuf:"bytes,10,rep,name=tuple_literals,json=tupleLiterals" json:"tuple_literals,omitempty"`
	F16S          []byte          `protobuf:"bytes,11,opt,name=f16s,proto3" json:"f16s,omitempty"`
}

Literals are used when the server and client need to exchange materialized data / results. Literals are also used to describe constants used in computations.

Transfers to/from the client are encoded in literal form, and the structure of the repeated fields is implied by the shape.

func (*LiteralProto) Descriptor

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

func (*LiteralProto) GetF16S

func (m *LiteralProto) GetF16S() []byte

func (*LiteralProto) GetF32S

func (m *LiteralProto) GetF32S() []float32

func (*LiteralProto) GetF64S

func (m *LiteralProto) GetF64S() []float64

func (*LiteralProto) GetPreds

func (m *LiteralProto) GetPreds() []bool

func (*LiteralProto) GetS32S

func (m *LiteralProto) GetS32S() []int32

func (*LiteralProto) GetS64S

func (m *LiteralProto) GetS64S() []int64

func (*LiteralProto) GetShape

func (m *LiteralProto) GetShape() *Shape

func (*LiteralProto) GetTupleLiterals

func (m *LiteralProto) GetTupleLiterals() []*LiteralProto

func (*LiteralProto) GetU32S

func (m *LiteralProto) GetU32S() []uint32

func (*LiteralProto) GetU64S

func (m *LiteralProto) GetU64S() []uint64

func (*LiteralProto) GetU8S

func (m *LiteralProto) GetU8S() []byte

func (*LiteralProto) ProtoMessage

func (*LiteralProto) ProtoMessage()

func (*LiteralProto) Reset

func (m *LiteralProto) Reset()

func (*LiteralProto) String

func (m *LiteralProto) String() string

type LoadComputationSnapshotRequest

type LoadComputationSnapshotRequest struct {
	Module *xla1.SessionModule `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
}

func (*LoadComputationSnapshotRequest) Descriptor

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

func (*LoadComputationSnapshotRequest) GetModule

func (*LoadComputationSnapshotRequest) ProtoMessage

func (*LoadComputationSnapshotRequest) ProtoMessage()

func (*LoadComputationSnapshotRequest) Reset

func (m *LoadComputationSnapshotRequest) Reset()

func (*LoadComputationSnapshotRequest) String

type LoadComputationSnapshotResponse

type LoadComputationSnapshotResponse struct {
	Computation *ComputationHandle `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
}

func (*LoadComputationSnapshotResponse) Descriptor

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

func (*LoadComputationSnapshotResponse) GetComputation

func (*LoadComputationSnapshotResponse) ProtoMessage

func (*LoadComputationSnapshotResponse) ProtoMessage()

func (*LoadComputationSnapshotResponse) Reset

func (*LoadComputationSnapshotResponse) String

type LoadDataRequest

type LoadDataRequest struct {
	// Describes the path of the ColumnIO tablet to load.
	ColumnioTabletPath string `protobuf:"bytes,1,opt,name=columnio_tablet_path,json=columnioTabletPath" json:"columnio_tablet_path,omitempty"`
	// Describes the field to load within the ColumnIO tablet.
	ColumnioField string `protobuf:"bytes,2,opt,name=columnio_field,json=columnioField" json:"columnio_field,omitempty"`
	// Individual element shape, excluding rows.
	ElementShape *Shape `protobuf:"bytes,3,opt,name=element_shape,json=elementShape" json:"element_shape,omitempty"`
	// Warning: ColumnIO does not support random-access, so use offset with
	// caution in performance-critical scenarios.
	Offset int64 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"`
	// Maximum number of elements (with shape element_shape) to load.
	Limit int64 `protobuf:"varint,5,opt,name=limit" json:"limit,omitempty"`
	// If more than one item is requested (via limit > 1), then this request
	// attribute zips together the produced vectors.
	Zip bool `protobuf:"varint,6,opt,name=zip" json:"zip,omitempty"`
}

func (*LoadDataRequest) Descriptor

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

func (*LoadDataRequest) GetColumnioField

func (m *LoadDataRequest) GetColumnioField() string

func (*LoadDataRequest) GetColumnioTabletPath

func (m *LoadDataRequest) GetColumnioTabletPath() string

func (*LoadDataRequest) GetElementShape

func (m *LoadDataRequest) GetElementShape() *Shape

func (*LoadDataRequest) GetLimit

func (m *LoadDataRequest) GetLimit() int64

func (*LoadDataRequest) GetOffset

func (m *LoadDataRequest) GetOffset() int64

func (*LoadDataRequest) GetZip

func (m *LoadDataRequest) GetZip() bool

func (*LoadDataRequest) ProtoMessage

func (*LoadDataRequest) ProtoMessage()

func (*LoadDataRequest) Reset

func (m *LoadDataRequest) Reset()

func (*LoadDataRequest) String

func (m *LoadDataRequest) String() string

type LoadDataResponse

type LoadDataResponse struct {
	Data          *GlobalDataHandle `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
	DataShape     *Shape            `protobuf:"bytes,2,opt,name=data_shape,json=dataShape" json:"data_shape,omitempty"`
	AvailableRows int64             `protobuf:"varint,3,opt,name=available_rows,json=availableRows" json:"available_rows,omitempty"`
	RowsLoaded    int64             `protobuf:"varint,4,opt,name=rows_loaded,json=rowsLoaded" json:"rows_loaded,omitempty"`
	Nanoseconds   int64             `protobuf:"varint,5,opt,name=nanoseconds" json:"nanoseconds,omitempty"`
}

func (*LoadDataResponse) Descriptor

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

func (*LoadDataResponse) GetAvailableRows

func (m *LoadDataResponse) GetAvailableRows() int64

func (*LoadDataResponse) GetData

func (m *LoadDataResponse) GetData() *GlobalDataHandle

func (*LoadDataResponse) GetDataShape

func (m *LoadDataResponse) GetDataShape() *Shape

func (*LoadDataResponse) GetNanoseconds

func (m *LoadDataResponse) GetNanoseconds() int64

func (*LoadDataResponse) GetRowsLoaded

func (m *LoadDataResponse) GetRowsLoaded() int64

func (*LoadDataResponse) ProtoMessage

func (*LoadDataResponse) ProtoMessage()

func (*LoadDataResponse) Reset

func (m *LoadDataResponse) Reset()

func (*LoadDataResponse) String

func (m *LoadDataResponse) String() string

type MapRequest

type MapRequest struct {
	Operands       []*ComputationDataHandle `protobuf:"bytes,2,rep,name=operands" json:"operands,omitempty"`
	ToApply        *ComputationHandle       `protobuf:"bytes,3,opt,name=to_apply,json=toApply" json:"to_apply,omitempty"`
	StaticOperands []*ComputationDataHandle `protobuf:"bytes,4,rep,name=static_operands,json=staticOperands" json:"static_operands,omitempty"`
}

func (*MapRequest) Descriptor

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

func (*MapRequest) GetOperands

func (m *MapRequest) GetOperands() []*ComputationDataHandle

func (*MapRequest) GetStaticOperands

func (m *MapRequest) GetStaticOperands() []*ComputationDataHandle

func (*MapRequest) GetToApply

func (m *MapRequest) GetToApply() *ComputationHandle

func (*MapRequest) ProtoMessage

func (*MapRequest) ProtoMessage()

func (*MapRequest) Reset

func (m *MapRequest) Reset()

func (*MapRequest) String

func (m *MapRequest) String() string

type OpMetadata

type OpMetadata struct {
	// The framework op name that generated this XLA op.
	//
	// Frameworks that build on top of XLA should mirror the names of their ops
	// back to users by specifying the op_type. In this way, even if the
	// framework's "ops" are implemented as multiple XLA HLO Ops, they can be
	// grouped appropriately. (e.g. if a SoftMax layer is emitted into XLA as
	// multiple ops, then each op should have the op_type be "SoftMax".)
	OpType string `protobuf:"bytes,1,opt,name=op_type,json=opType" json:"op_type,omitempty"`
	// The user-specified name of the op.
	//
	// This name is often unique within a computation. Note: some frameworks
	// add auto-generated names if the user does not provide one.
	OpName string `protobuf:"bytes,2,opt,name=op_name,json=opName" json:"op_name,omitempty"`
	// Indicate a file and line that this op is associated to in a user's program.
	//
	// e.g. it could be the file and line of user code that generated the op.
	SourceFile string `protobuf:"bytes,3,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"`
	SourceLine int32  `protobuf:"varint,4,opt,name=source_line,json=sourceLine" json:"source_line,omitempty"`
}

Symbolization metadata for HLO Instructions.

This metadata is used for debugging XLA code generation, as well as performance profiling of XLA-generated executables.

func (*OpMetadata) Descriptor

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

func (*OpMetadata) GetOpName

func (m *OpMetadata) GetOpName() string

func (*OpMetadata) GetOpType

func (m *OpMetadata) GetOpType() string

func (*OpMetadata) GetSourceFile

func (m *OpMetadata) GetSourceFile() string

func (*OpMetadata) GetSourceLine

func (m *OpMetadata) GetSourceLine() int32

func (*OpMetadata) ProtoMessage

func (*OpMetadata) ProtoMessage()

func (*OpMetadata) Reset

func (m *OpMetadata) Reset()

func (*OpMetadata) String

func (m *OpMetadata) String() string

type OpRequest

type OpRequest struct {
	Computation *ComputationHandle `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
	Metadata    *OpMetadata        `protobuf:"bytes,33,opt,name=metadata" json:"metadata,omitempty"`
	// Types that are valid to be assigned to Op:
	//	*OpRequest_BinaryOpRequest
	//	*OpRequest_BroadcastRequest
	//	*OpRequest_CallRequest
	//	*OpRequest_ConcatenateRequest
	//	*OpRequest_ConstantRequest
	//	*OpRequest_ConvertRequest
	//	*OpRequest_ConvolveRequest
	//	*OpRequest_CrossReplicaSumRequest
	//	*OpRequest_CustomCallRequest
	//	*OpRequest_DynamicSliceRequest
	//	*OpRequest_DynamicUpdateSliceRequest
	//	*OpRequest_GetTupleElementRequest
	//	*OpRequest_InfeedRequest
	//	*OpRequest_MapRequest
	//	*OpRequest_PadRequest
	//	*OpRequest_ParameterRequest
	//	*OpRequest_ReducePrecisionRequest
	//	*OpRequest_ReduceRequest
	//	*OpRequest_ReduceWindowRequest
	//	*OpRequest_ReshapeRequest
	//	*OpRequest_ReverseRequest
	//	*OpRequest_RngRequest
	//	*OpRequest_SelectAndScatterRequest
	//	*OpRequest_SliceRequest
	//	*OpRequest_TernaryOpRequest
	//	*OpRequest_TraceRequest
	//	*OpRequest_TransposeRequest
	//	*OpRequest_UnaryOpRequest
	//	*OpRequest_VariadicOpRequest
	//	*OpRequest_WhileRequest
	//	*OpRequest_SendRequest
	//	*OpRequest_RecvRequest
	//	*OpRequest_OutfeedRequest
	//	*OpRequest_BatchNormTrainingRequest
	Op isOpRequest_Op `protobuf_oneof:"op"`
}

func (*OpRequest) Descriptor

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

func (*OpRequest) GetBatchNormTrainingRequest

func (m *OpRequest) GetBatchNormTrainingRequest() *BatchNormTrainingRequest

func (*OpRequest) GetBinaryOpRequest

func (m *OpRequest) GetBinaryOpRequest() *BinaryOpRequest

func (*OpRequest) GetBroadcastRequest

func (m *OpRequest) GetBroadcastRequest() *BroadcastRequest

func (*OpRequest) GetCallRequest

func (m *OpRequest) GetCallRequest() *CallRequest

func (*OpRequest) GetComputation

func (m *OpRequest) GetComputation() *ComputationHandle

func (*OpRequest) GetConcatenateRequest

func (m *OpRequest) GetConcatenateRequest() *ConcatenateRequest

func (*OpRequest) GetConstantRequest

func (m *OpRequest) GetConstantRequest() *ConstantRequest

func (*OpRequest) GetConvertRequest

func (m *OpRequest) GetConvertRequest() *ConvertRequest

func (*OpRequest) GetConvolveRequest

func (m *OpRequest) GetConvolveRequest() *ConvolveRequest

func (*OpRequest) GetCrossReplicaSumRequest

func (m *OpRequest) GetCrossReplicaSumRequest() *CrossReplicaSumRequest

func (*OpRequest) GetCustomCallRequest

func (m *OpRequest) GetCustomCallRequest() *CustomCallRequest

func (*OpRequest) GetDynamicSliceRequest

func (m *OpRequest) GetDynamicSliceRequest() *DynamicSliceRequest

func (*OpRequest) GetDynamicUpdateSliceRequest

func (m *OpRequest) GetDynamicUpdateSliceRequest() *DynamicUpdateSliceRequest

func (*OpRequest) GetGetTupleElementRequest

func (m *OpRequest) GetGetTupleElementRequest() *GetTupleElementRequest

func (*OpRequest) GetInfeedRequest

func (m *OpRequest) GetInfeedRequest() *InfeedRequest

func (*OpRequest) GetMapRequest

func (m *OpRequest) GetMapRequest() *MapRequest

func (*OpRequest) GetMetadata

func (m *OpRequest) GetMetadata() *OpMetadata

func (*OpRequest) GetOp

func (m *OpRequest) GetOp() isOpRequest_Op

func (*OpRequest) GetOutfeedRequest

func (m *OpRequest) GetOutfeedRequest() *OutfeedRequest

func (*OpRequest) GetPadRequest

func (m *OpRequest) GetPadRequest() *PadRequest

func (*OpRequest) GetParameterRequest

func (m *OpRequest) GetParameterRequest() *ParameterRequest

func (*OpRequest) GetRecvRequest

func (m *OpRequest) GetRecvRequest() *RecvRequest

func (*OpRequest) GetReducePrecisionRequest

func (m *OpRequest) GetReducePrecisionRequest() *ReducePrecisionRequest

func (*OpRequest) GetReduceRequest

func (m *OpRequest) GetReduceRequest() *ReduceRequest

func (*OpRequest) GetReduceWindowRequest

func (m *OpRequest) GetReduceWindowRequest() *ReduceWindowRequest

func (*OpRequest) GetReshapeRequest

func (m *OpRequest) GetReshapeRequest() *ReshapeRequest

func (*OpRequest) GetReverseRequest

func (m *OpRequest) GetReverseRequest() *ReverseRequest

func (*OpRequest) GetRngRequest

func (m *OpRequest) GetRngRequest() *RngRequest

func (*OpRequest) GetSelectAndScatterRequest

func (m *OpRequest) GetSelectAndScatterRequest() *SelectAndScatterRequest

func (*OpRequest) GetSendRequest

func (m *OpRequest) GetSendRequest() *SendRequest

func (*OpRequest) GetSliceRequest

func (m *OpRequest) GetSliceRequest() *SliceRequest

func (*OpRequest) GetTernaryOpRequest

func (m *OpRequest) GetTernaryOpRequest() *TernaryOpRequest

func (*OpRequest) GetTraceRequest

func (m *OpRequest) GetTraceRequest() *TraceRequest

func (*OpRequest) GetTransposeRequest

func (m *OpRequest) GetTransposeRequest() *TransposeRequest

func (*OpRequest) GetUnaryOpRequest

func (m *OpRequest) GetUnaryOpRequest() *UnaryOpRequest

func (*OpRequest) GetVariadicOpRequest

func (m *OpRequest) GetVariadicOpRequest() *VariadicOpRequest

func (*OpRequest) GetWhileRequest

func (m *OpRequest) GetWhileRequest() *WhileRequest

func (*OpRequest) ProtoMessage

func (*OpRequest) ProtoMessage()

func (*OpRequest) Reset

func (m *OpRequest) Reset()

func (*OpRequest) String

func (m *OpRequest) String() string

func (*OpRequest) XXX_OneofFuncs

func (*OpRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type OpRequest_BatchNormTrainingRequest

type OpRequest_BatchNormTrainingRequest struct {
	BatchNormTrainingRequest *BatchNormTrainingRequest `protobuf:"bytes,35,opt,name=batch_norm_training_request,json=batchNormTrainingRequest,oneof"`
}

type OpRequest_BinaryOpRequest

type OpRequest_BinaryOpRequest struct {
	BinaryOpRequest *BinaryOpRequest `protobuf:"bytes,2,opt,name=binary_op_request,json=binaryOpRequest,oneof"`
}

type OpRequest_BroadcastRequest

type OpRequest_BroadcastRequest struct {
	BroadcastRequest *BroadcastRequest `protobuf:"bytes,3,opt,name=broadcast_request,json=broadcastRequest,oneof"`
}

type OpRequest_CallRequest

type OpRequest_CallRequest struct {
	CallRequest *CallRequest `protobuf:"bytes,4,opt,name=call_request,json=callRequest,oneof"`
}

type OpRequest_ConcatenateRequest

type OpRequest_ConcatenateRequest struct {
	ConcatenateRequest *ConcatenateRequest `protobuf:"bytes,5,opt,name=concatenate_request,json=concatenateRequest,oneof"`
}

type OpRequest_ConstantRequest

type OpRequest_ConstantRequest struct {
	ConstantRequest *ConstantRequest `protobuf:"bytes,6,opt,name=constant_request,json=constantRequest,oneof"`
}

type OpRequest_ConvertRequest

type OpRequest_ConvertRequest struct {
	ConvertRequest *ConvertRequest `protobuf:"bytes,7,opt,name=convert_request,json=convertRequest,oneof"`
}

type OpRequest_ConvolveRequest

type OpRequest_ConvolveRequest struct {
	ConvolveRequest *ConvolveRequest `protobuf:"bytes,8,opt,name=convolve_request,json=convolveRequest,oneof"`
}

type OpRequest_CrossReplicaSumRequest

type OpRequest_CrossReplicaSumRequest struct {
	CrossReplicaSumRequest *CrossReplicaSumRequest `protobuf:"bytes,9,opt,name=cross_replica_sum_request,json=crossReplicaSumRequest,oneof"`
}

type OpRequest_CustomCallRequest

type OpRequest_CustomCallRequest struct {
	CustomCallRequest *CustomCallRequest `protobuf:"bytes,10,opt,name=custom_call_request,json=customCallRequest,oneof"`
}

type OpRequest_DynamicSliceRequest

type OpRequest_DynamicSliceRequest struct {
	DynamicSliceRequest *DynamicSliceRequest `protobuf:"bytes,11,opt,name=dynamic_slice_request,json=dynamicSliceRequest,oneof"`
}

type OpRequest_DynamicUpdateSliceRequest

type OpRequest_DynamicUpdateSliceRequest struct {
	DynamicUpdateSliceRequest *DynamicUpdateSliceRequest `protobuf:"bytes,12,opt,name=dynamic_update_slice_request,json=dynamicUpdateSliceRequest,oneof"`
}

type OpRequest_GetTupleElementRequest

type OpRequest_GetTupleElementRequest struct {
	GetTupleElementRequest *GetTupleElementRequest `protobuf:"bytes,13,opt,name=get_tuple_element_request,json=getTupleElementRequest,oneof"`
}

type OpRequest_InfeedRequest

type OpRequest_InfeedRequest struct {
	InfeedRequest *InfeedRequest `protobuf:"bytes,14,opt,name=infeed_request,json=infeedRequest,oneof"`
}

type OpRequest_MapRequest

type OpRequest_MapRequest struct {
	MapRequest *MapRequest `protobuf:"bytes,15,opt,name=map_request,json=mapRequest,oneof"`
}

type OpRequest_OutfeedRequest

type OpRequest_OutfeedRequest struct {
	OutfeedRequest *OutfeedRequest `protobuf:"bytes,32,opt,name=outfeed_request,json=outfeedRequest,oneof"`
}

type OpRequest_PadRequest

type OpRequest_PadRequest struct {
	PadRequest *PadRequest `protobuf:"bytes,16,opt,name=pad_request,json=padRequest,oneof"`
}

type OpRequest_ParameterRequest

type OpRequest_ParameterRequest struct {
	ParameterRequest *ParameterRequest `protobuf:"bytes,17,opt,name=parameter_request,json=parameterRequest,oneof"`
}

type OpRequest_RecvRequest

type OpRequest_RecvRequest struct {
	RecvRequest *RecvRequest `protobuf:"bytes,31,opt,name=recv_request,json=recvRequest,oneof"`
}

type OpRequest_ReducePrecisionRequest

type OpRequest_ReducePrecisionRequest struct {
	ReducePrecisionRequest *ReducePrecisionRequest `protobuf:"bytes,36,opt,name=reduce_precision_request,json=reducePrecisionRequest,oneof"`
}

type OpRequest_ReduceRequest

type OpRequest_ReduceRequest struct {
	ReduceRequest *ReduceRequest `protobuf:"bytes,18,opt,name=reduce_request,json=reduceRequest,oneof"`
}

type OpRequest_ReduceWindowRequest

type OpRequest_ReduceWindowRequest struct {
	ReduceWindowRequest *ReduceWindowRequest `protobuf:"bytes,19,opt,name=reduce_window_request,json=reduceWindowRequest,oneof"`
}

type OpRequest_ReshapeRequest

type OpRequest_ReshapeRequest struct {
	ReshapeRequest *ReshapeRequest `protobuf:"bytes,20,opt,name=reshape_request,json=reshapeRequest,oneof"`
}

type OpRequest_ReverseRequest

type OpRequest_ReverseRequest struct {
	ReverseRequest *ReverseRequest `protobuf:"bytes,21,opt,name=reverse_request,json=reverseRequest,oneof"`
}

type OpRequest_RngRequest

type OpRequest_RngRequest struct {
	RngRequest *RngRequest `protobuf:"bytes,22,opt,name=rng_request,json=rngRequest,oneof"`
}

type OpRequest_SelectAndScatterRequest

type OpRequest_SelectAndScatterRequest struct {
	SelectAndScatterRequest *SelectAndScatterRequest `protobuf:"bytes,23,opt,name=select_and_scatter_request,json=selectAndScatterRequest,oneof"`
}

type OpRequest_SendRequest

type OpRequest_SendRequest struct {
	SendRequest *SendRequest `protobuf:"bytes,30,opt,name=send_request,json=sendRequest,oneof"`
}

type OpRequest_SliceRequest

type OpRequest_SliceRequest struct {
	SliceRequest *SliceRequest `protobuf:"bytes,24,opt,name=slice_request,json=sliceRequest,oneof"`
}

type OpRequest_TernaryOpRequest

type OpRequest_TernaryOpRequest struct {
	TernaryOpRequest *TernaryOpRequest `protobuf:"bytes,25,opt,name=ternary_op_request,json=ternaryOpRequest,oneof"`
}

type OpRequest_TraceRequest

type OpRequest_TraceRequest struct {
	TraceRequest *TraceRequest `protobuf:"bytes,26,opt,name=trace_request,json=traceRequest,oneof"`
}

type OpRequest_TransposeRequest

type OpRequest_TransposeRequest struct {
	TransposeRequest *TransposeRequest `protobuf:"bytes,34,opt,name=transpose_request,json=transposeRequest,oneof"`
}

type OpRequest_UnaryOpRequest

type OpRequest_UnaryOpRequest struct {
	UnaryOpRequest *UnaryOpRequest `protobuf:"bytes,27,opt,name=unary_op_request,json=unaryOpRequest,oneof"`
}

type OpRequest_VariadicOpRequest

type OpRequest_VariadicOpRequest struct {
	VariadicOpRequest *VariadicOpRequest `protobuf:"bytes,28,opt,name=variadic_op_request,json=variadicOpRequest,oneof"`
}

type OpRequest_WhileRequest

type OpRequest_WhileRequest struct {
	WhileRequest *WhileRequest `protobuf:"bytes,29,opt,name=while_request,json=whileRequest,oneof"`
}

type OpResponse

type OpResponse struct {
	Output *ComputationDataHandle `protobuf:"bytes,1,opt,name=output" json:"output,omitempty"`
}

func (*OpResponse) Descriptor

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

func (*OpResponse) GetOutput

func (m *OpResponse) GetOutput() *ComputationDataHandle

func (*OpResponse) ProtoMessage

func (*OpResponse) ProtoMessage()

func (*OpResponse) Reset

func (m *OpResponse) Reset()

func (*OpResponse) String

func (m *OpResponse) String() string

type OutfeedRequest

type OutfeedRequest struct {
	// The shape of the data returned by reading the device's outfeed buffer.
	Shape *Shape `protobuf:"bytes,1,opt,name=shape" json:"shape,omitempty"`
	// Operand to the Outfeed. Supports tuple.
	Operand *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	// Backend-specific information for how to perform the outfeed.
	OutfeedConfig []byte `protobuf:"bytes,3,opt,name=outfeed_config,json=outfeedConfig,proto3" json:"outfeed_config,omitempty"`
}

func (*OutfeedRequest) Descriptor

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

func (*OutfeedRequest) GetOperand

func (m *OutfeedRequest) GetOperand() *ComputationDataHandle

func (*OutfeedRequest) GetOutfeedConfig

func (m *OutfeedRequest) GetOutfeedConfig() []byte

func (*OutfeedRequest) GetShape

func (m *OutfeedRequest) GetShape() *Shape

func (*OutfeedRequest) ProtoMessage

func (*OutfeedRequest) ProtoMessage()

func (*OutfeedRequest) Reset

func (m *OutfeedRequest) Reset()

func (*OutfeedRequest) String

func (m *OutfeedRequest) String() string

type PadRequest

type PadRequest struct {
	Operand       *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	PaddingValue  *ComputationDataHandle `protobuf:"bytes,3,opt,name=padding_value,json=paddingValue" json:"padding_value,omitempty"`
	PaddingConfig *PaddingConfig         `protobuf:"bytes,4,opt,name=padding_config,json=paddingConfig" json:"padding_config,omitempty"`
}

func (*PadRequest) Descriptor

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

func (*PadRequest) GetOperand

func (m *PadRequest) GetOperand() *ComputationDataHandle

func (*PadRequest) GetPaddingConfig

func (m *PadRequest) GetPaddingConfig() *PaddingConfig

func (*PadRequest) GetPaddingValue

func (m *PadRequest) GetPaddingValue() *ComputationDataHandle

func (*PadRequest) ProtoMessage

func (*PadRequest) ProtoMessage()

func (*PadRequest) Reset

func (m *PadRequest) Reset()

func (*PadRequest) String

func (m *PadRequest) String() string

type PaddingConfig

type PaddingConfig struct {
	// The padding configuration for all dimensions.
	Dimensions []*PaddingConfig_PaddingConfigDimension `protobuf:"bytes,1,rep,name=dimensions" json:"dimensions,omitempty"`
}

Describes the padding configuration for Pad operation. The padding amount on both edges as well as between the elements are specified for each dimension.

func (*PaddingConfig) Descriptor

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

func (*PaddingConfig) GetDimensions

func (*PaddingConfig) ProtoMessage

func (*PaddingConfig) ProtoMessage()

func (*PaddingConfig) Reset

func (m *PaddingConfig) Reset()

func (*PaddingConfig) String

func (m *PaddingConfig) String() string

type PaddingConfig_PaddingConfigDimension

type PaddingConfig_PaddingConfigDimension struct {
	// Padding amount on the low-end (next to the index 0).
	EdgePaddingLow int64 `protobuf:"varint,1,opt,name=edge_padding_low,json=edgePaddingLow" json:"edge_padding_low,omitempty"`
	// Padding amount on the high-end (next to the highest index).
	EdgePaddingHigh int64 `protobuf:"varint,2,opt,name=edge_padding_high,json=edgePaddingHigh" json:"edge_padding_high,omitempty"`
	// Padding amount between the elements.
	InteriorPadding int64 `protobuf:"varint,3,opt,name=interior_padding,json=interiorPadding" json:"interior_padding,omitempty"`
}

Describes the padding configuration for a dimension.

func (*PaddingConfig_PaddingConfigDimension) Descriptor

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

func (*PaddingConfig_PaddingConfigDimension) GetEdgePaddingHigh

func (m *PaddingConfig_PaddingConfigDimension) GetEdgePaddingHigh() int64

func (*PaddingConfig_PaddingConfigDimension) GetEdgePaddingLow

func (m *PaddingConfig_PaddingConfigDimension) GetEdgePaddingLow() int64

func (*PaddingConfig_PaddingConfigDimension) GetInteriorPadding

func (m *PaddingConfig_PaddingConfigDimension) GetInteriorPadding() int64

func (*PaddingConfig_PaddingConfigDimension) ProtoMessage

func (*PaddingConfig_PaddingConfigDimension) ProtoMessage()

func (*PaddingConfig_PaddingConfigDimension) Reset

func (*PaddingConfig_PaddingConfigDimension) String

type PaddingValue

type PaddingValue int32

Describes the value held inside padding elements.

const (
	PaddingValue_INVALID_PAD PaddingValue = 0
	// Zero padding must be 0-values that correspond to the shape's element type.
	PaddingValue_ZERO_PAD PaddingValue = 1
	// One padding must be 1-values that correspond to the shape's element type.
	PaddingValue_ONE_PAD PaddingValue = 2
	// "Lowest" padding must be the lowest values in the shape's element type,
	// used as padding for operations like max-accumulation.
	PaddingValue_LOWEST_PAD PaddingValue = 3
	// "Highest" padding must be the largest values in the shape's element type,
	// used as padding for operations like min-accumulation.
	PaddingValue_HIGHEST_PAD PaddingValue = 4
	// Unknown padding could be anything; e.g. floating NaNs!
	PaddingValue_UNKNOWN_PAD PaddingValue = 5
)

func (PaddingValue) EnumDescriptor

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

func (PaddingValue) String

func (x PaddingValue) String() string

type ParameterRequest

type ParameterRequest struct {
	Shape     *Shape `protobuf:"bytes,2,opt,name=shape" json:"shape,omitempty"`
	Parameter int64  `protobuf:"varint,3,opt,name=parameter" json:"parameter,omitempty"`
	Name      string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
}

func (*ParameterRequest) Descriptor

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

func (*ParameterRequest) GetName

func (m *ParameterRequest) GetName() string

func (*ParameterRequest) GetParameter

func (m *ParameterRequest) GetParameter() int64

func (*ParameterRequest) GetShape

func (m *ParameterRequest) GetShape() *Shape

func (*ParameterRequest) ProtoMessage

func (*ParameterRequest) ProtoMessage()

func (*ParameterRequest) Reset

func (m *ParameterRequest) Reset()

func (*ParameterRequest) String

func (m *ParameterRequest) String() string

type PrimitiveType

type PrimitiveType int32

Primitive types are the individual values that can be held in rectangular multidimensional arrays. A description of the rectangular multidimensional array dimensions / primitive type is given by Shape, below.

const (
	// Invalid primitive type to serve as default.
	PrimitiveType_PRIMITIVE_TYPE_INVALID PrimitiveType = 0
	// Predicates are two-state booleans.
	PrimitiveType_PRED PrimitiveType = 1
	// Signed integral values of fixed width.
	PrimitiveType_S8  PrimitiveType = 2
	PrimitiveType_S16 PrimitiveType = 3
	PrimitiveType_S32 PrimitiveType = 4
	PrimitiveType_S64 PrimitiveType = 5
	// Unsigned integral values of fixed width.
	PrimitiveType_U8  PrimitiveType = 6
	PrimitiveType_U16 PrimitiveType = 7
	PrimitiveType_U32 PrimitiveType = 8
	PrimitiveType_U64 PrimitiveType = 9
	// Floating-point values of fixed width.
	//
	// Note: if f16s are not natively supported on the device, they will be
	// converted to f16 from f32 at arbirary points in the computation.
	PrimitiveType_F16 PrimitiveType = 10
	PrimitiveType_F32 PrimitiveType = 11
	PrimitiveType_F64 PrimitiveType = 12
	// A tuple is a polymorphic sequence; e.g. a shape that holds different
	// sub-shapes. They are used for things like returning multiple values from a
	// computation; e.g. a computation that returns weights and biases may have a
	// signature that results in a tuple like (f32[784x2000], f32[2000])
	//
	// If a shape proto has the tuple element type, it may not have any entries
	// in the dimensions field.
	PrimitiveType_TUPLE PrimitiveType = 13
	// An opaque type used for passing context specific data to a custom
	// operation.
	PrimitiveType_OPAQUE PrimitiveType = 14
)

func (PrimitiveType) EnumDescriptor

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

func (PrimitiveType) String

func (x PrimitiveType) String() string

type ProgramShape

type ProgramShape struct {
	Parameters     []*Shape `protobuf:"bytes,1,rep,name=parameters" json:"parameters,omitempty"`
	Result         *Shape   `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"`
	ParameterNames []string `protobuf:"bytes,3,rep,name=parameter_names,json=parameterNames" json:"parameter_names,omitempty"`
}

Shape of the parameters and output of a computation (like a traditional function signature).

func (*ProgramShape) Descriptor

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

func (*ProgramShape) GetParameterNames

func (m *ProgramShape) GetParameterNames() []string

func (*ProgramShape) GetParameters

func (m *ProgramShape) GetParameters() []*Shape

func (*ProgramShape) GetResult

func (m *ProgramShape) GetResult() *Shape

func (*ProgramShape) ProtoMessage

func (*ProgramShape) ProtoMessage()

func (*ProgramShape) Reset

func (m *ProgramShape) Reset()

func (*ProgramShape) String

func (m *ProgramShape) String() string

type RandomDistribution

type RandomDistribution int32
const (
	RandomDistribution_RNG_INVALID RandomDistribution = 0
	// Creates a uniform-distribution-generated random number on the semi-open
	// interval [parameter[0], parameter[1]).
	RandomDistribution_RNG_UNIFORM RandomDistribution = 1
	// Creates a normal-distribution-generated random number with mean
	// parameter[0] and standard deviation parameter[1].
	RandomDistribution_RNG_NORMAL RandomDistribution = 2
	// Creates a Bernoulli-distribution-generated random number with mean
	// parameter[0].
	RandomDistribution_RNG_BERNOULLI RandomDistribution = 3
)

func (RandomDistribution) EnumDescriptor

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

func (RandomDistribution) String

func (x RandomDistribution) String() string

type RecvRequest

type RecvRequest struct {
	Shape         *Shape         `protobuf:"bytes,1,opt,name=shape" json:"shape,omitempty"`
	ChannelHandle *ChannelHandle `protobuf:"bytes,2,opt,name=channel_handle,json=channelHandle" json:"channel_handle,omitempty"`
}

func (*RecvRequest) Descriptor

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

func (*RecvRequest) GetChannelHandle

func (m *RecvRequest) GetChannelHandle() *ChannelHandle

func (*RecvRequest) GetShape

func (m *RecvRequest) GetShape() *Shape

func (*RecvRequest) ProtoMessage

func (*RecvRequest) ProtoMessage()

func (*RecvRequest) Reset

func (m *RecvRequest) Reset()

func (*RecvRequest) String

func (m *RecvRequest) String() string

type ReducePrecisionRequest

type ReducePrecisionRequest struct {
	Operand      *ComputationDataHandle `protobuf:"bytes,1,opt,name=operand" json:"operand,omitempty"`
	ExponentBits int32                  `protobuf:"varint,2,opt,name=exponent_bits,json=exponentBits" json:"exponent_bits,omitempty"`
	MantissaBits int32                  `protobuf:"varint,3,opt,name=mantissa_bits,json=mantissaBits" json:"mantissa_bits,omitempty"`
}

func (*ReducePrecisionRequest) Descriptor

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

func (*ReducePrecisionRequest) GetExponentBits

func (m *ReducePrecisionRequest) GetExponentBits() int32

func (*ReducePrecisionRequest) GetMantissaBits

func (m *ReducePrecisionRequest) GetMantissaBits() int32

func (*ReducePrecisionRequest) GetOperand

func (*ReducePrecisionRequest) ProtoMessage

func (*ReducePrecisionRequest) ProtoMessage()

func (*ReducePrecisionRequest) Reset

func (m *ReducePrecisionRequest) Reset()

func (*ReducePrecisionRequest) String

func (m *ReducePrecisionRequest) String() string

type ReduceRequest

type ReduceRequest struct {
	// Operand to the reduction.
	Operand *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	// Initial value for the reduction. This must be consistent with the result
	// shape of to_apply.
	InitValue *ComputationDataHandle `protobuf:"bytes,3,opt,name=init_value,json=initValue" json:"init_value,omitempty"`
	// The dimensions to reduce over.
	Dimensions []int64 `protobuf:"varint,4,rep,packed,name=dimensions" json:"dimensions,omitempty"`
	// The computation to apply in the reduction.
	ToApply *ComputationHandle `protobuf:"bytes,5,opt,name=to_apply,json=toApply" json:"to_apply,omitempty"`
}

func (*ReduceRequest) Descriptor

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

func (*ReduceRequest) GetDimensions

func (m *ReduceRequest) GetDimensions() []int64

func (*ReduceRequest) GetInitValue

func (m *ReduceRequest) GetInitValue() *ComputationDataHandle

func (*ReduceRequest) GetOperand

func (m *ReduceRequest) GetOperand() *ComputationDataHandle

func (*ReduceRequest) GetToApply

func (m *ReduceRequest) GetToApply() *ComputationHandle

func (*ReduceRequest) ProtoMessage

func (*ReduceRequest) ProtoMessage()

func (*ReduceRequest) Reset

func (m *ReduceRequest) Reset()

func (*ReduceRequest) String

func (m *ReduceRequest) String() string

type ReduceWindowRequest

type ReduceWindowRequest struct {
	Operand   *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	InitValue *ComputationDataHandle `protobuf:"bytes,3,opt,name=init_value,json=initValue" json:"init_value,omitempty"`
	Window    *Window                `protobuf:"bytes,4,opt,name=window" json:"window,omitempty"`
	ToApply   *ComputationHandle     `protobuf:"bytes,5,opt,name=to_apply,json=toApply" json:"to_apply,omitempty"`
}

func (*ReduceWindowRequest) Descriptor

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

func (*ReduceWindowRequest) GetInitValue

func (m *ReduceWindowRequest) GetInitValue() *ComputationDataHandle

func (*ReduceWindowRequest) GetOperand

func (m *ReduceWindowRequest) GetOperand() *ComputationDataHandle

func (*ReduceWindowRequest) GetToApply

func (m *ReduceWindowRequest) GetToApply() *ComputationHandle

func (*ReduceWindowRequest) GetWindow

func (m *ReduceWindowRequest) GetWindow() *Window

func (*ReduceWindowRequest) ProtoMessage

func (*ReduceWindowRequest) ProtoMessage()

func (*ReduceWindowRequest) Reset

func (m *ReduceWindowRequest) Reset()

func (*ReduceWindowRequest) String

func (m *ReduceWindowRequest) String() string

type ResetDeviceRequest

type ResetDeviceRequest struct {
	DeviceHandle *DeviceHandle `protobuf:"bytes,1,opt,name=device_handle,json=deviceHandle" json:"device_handle,omitempty"`
}

func (*ResetDeviceRequest) Descriptor

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

func (*ResetDeviceRequest) GetDeviceHandle

func (m *ResetDeviceRequest) GetDeviceHandle() *DeviceHandle

func (*ResetDeviceRequest) ProtoMessage

func (*ResetDeviceRequest) ProtoMessage()

func (*ResetDeviceRequest) Reset

func (m *ResetDeviceRequest) Reset()

func (*ResetDeviceRequest) String

func (m *ResetDeviceRequest) String() string

type ResetDeviceResponse

type ResetDeviceResponse struct {
}

func (*ResetDeviceResponse) Descriptor

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

func (*ResetDeviceResponse) ProtoMessage

func (*ResetDeviceResponse) ProtoMessage()

func (*ResetDeviceResponse) Reset

func (m *ResetDeviceResponse) Reset()

func (*ResetDeviceResponse) String

func (m *ResetDeviceResponse) String() string

type ReshapeRequest

type ReshapeRequest struct {
	Operand *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	// The dimension order for collapse (from fastest-changing to slowest).
	Dimensions []int64 `protobuf:"varint,3,rep,packed,name=dimensions" json:"dimensions,omitempty"`
	// The new dimension sizes (from dimension 0 to n-1).
	NewSizes []int64 `protobuf:"varint,4,rep,packed,name=new_sizes,json=newSizes" json:"new_sizes,omitempty"`
}

func (*ReshapeRequest) Descriptor

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

func (*ReshapeRequest) GetDimensions

func (m *ReshapeRequest) GetDimensions() []int64

func (*ReshapeRequest) GetNewSizes

func (m *ReshapeRequest) GetNewSizes() []int64

func (*ReshapeRequest) GetOperand

func (m *ReshapeRequest) GetOperand() *ComputationDataHandle

func (*ReshapeRequest) ProtoMessage

func (*ReshapeRequest) ProtoMessage()

func (*ReshapeRequest) Reset

func (m *ReshapeRequest) Reset()

func (*ReshapeRequest) String

func (m *ReshapeRequest) String() string

type ReverseRequest

type ReverseRequest struct {
	Operand    *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	Dimensions []int64                `protobuf:"varint,3,rep,packed,name=dimensions" json:"dimensions,omitempty"`
}

func (*ReverseRequest) Descriptor

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

func (*ReverseRequest) GetDimensions

func (m *ReverseRequest) GetDimensions() []int64

func (*ReverseRequest) GetOperand

func (m *ReverseRequest) GetOperand() *ComputationDataHandle

func (*ReverseRequest) ProtoMessage

func (*ReverseRequest) ProtoMessage()

func (*ReverseRequest) Reset

func (m *ReverseRequest) Reset()

func (*ReverseRequest) String

func (m *ReverseRequest) String() string

type RngRequest

type RngRequest struct {
	Distribution RandomDistribution       `protobuf:"varint,2,opt,name=distribution,enum=xla.RandomDistribution" json:"distribution,omitempty"`
	Parameter    []*ComputationDataHandle `protobuf:"bytes,3,rep,name=parameter" json:"parameter,omitempty"`
	Shape        *Shape                   `protobuf:"bytes,4,opt,name=shape" json:"shape,omitempty"`
}

func (*RngRequest) Descriptor

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

func (*RngRequest) GetDistribution

func (m *RngRequest) GetDistribution() RandomDistribution

func (*RngRequest) GetParameter

func (m *RngRequest) GetParameter() []*ComputationDataHandle

func (*RngRequest) GetShape

func (m *RngRequest) GetShape() *Shape

func (*RngRequest) ProtoMessage

func (*RngRequest) ProtoMessage()

func (*RngRequest) Reset

func (m *RngRequest) Reset()

func (*RngRequest) String

func (m *RngRequest) String() string

type SelectAndScatterRequest

type SelectAndScatterRequest struct {
	// Operand array on which the windows slide.
	Operand *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	// Source array for the data to scatter.
	Source *ComputationDataHandle `protobuf:"bytes,3,opt,name=source" json:"source,omitempty"`
	// Initial scalar value for each element in the output.
	InitValue *ComputationDataHandle `protobuf:"bytes,4,opt,name=init_value,json=initValue" json:"init_value,omitempty"`
	// Window configuration.
	Window *Window `protobuf:"bytes,5,opt,name=window" json:"window,omitempty"`
	// Binary function used to select an element from each window.
	Select *ComputationHandle `protobuf:"bytes,6,opt,name=select" json:"select,omitempty"`
	// Binary function used to combine each scattered value from source with the
	// current output value at the selected location.
	Scatter *ComputationHandle `protobuf:"bytes,7,opt,name=scatter" json:"scatter,omitempty"`
}

func (*SelectAndScatterRequest) Descriptor

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

func (*SelectAndScatterRequest) GetInitValue

func (*SelectAndScatterRequest) GetOperand

func (*SelectAndScatterRequest) GetScatter

func (m *SelectAndScatterRequest) GetScatter() *ComputationHandle

func (*SelectAndScatterRequest) GetSelect

func (*SelectAndScatterRequest) GetSource

func (*SelectAndScatterRequest) GetWindow

func (m *SelectAndScatterRequest) GetWindow() *Window

func (*SelectAndScatterRequest) ProtoMessage

func (*SelectAndScatterRequest) ProtoMessage()

func (*SelectAndScatterRequest) Reset

func (m *SelectAndScatterRequest) Reset()

func (*SelectAndScatterRequest) String

func (m *SelectAndScatterRequest) String() string

type SendRequest

type SendRequest struct {
	Operand       *ComputationDataHandle `protobuf:"bytes,1,opt,name=operand" json:"operand,omitempty"`
	ChannelHandle *ChannelHandle         `protobuf:"bytes,2,opt,name=channel_handle,json=channelHandle" json:"channel_handle,omitempty"`
}

func (*SendRequest) Descriptor

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

func (*SendRequest) GetChannelHandle

func (m *SendRequest) GetChannelHandle() *ChannelHandle

func (*SendRequest) GetOperand

func (m *SendRequest) GetOperand() *ComputationDataHandle

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) Reset

func (m *SendRequest) Reset()

func (*SendRequest) String

func (m *SendRequest) String() string

type SetReturnValueRequest

type SetReturnValueRequest struct {
	Computation *ComputationHandle     `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
	Operand     *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
}

func (*SetReturnValueRequest) Descriptor

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

func (*SetReturnValueRequest) GetComputation

func (m *SetReturnValueRequest) GetComputation() *ComputationHandle

func (*SetReturnValueRequest) GetOperand

func (*SetReturnValueRequest) ProtoMessage

func (*SetReturnValueRequest) ProtoMessage()

func (*SetReturnValueRequest) Reset

func (m *SetReturnValueRequest) Reset()

func (*SetReturnValueRequest) String

func (m *SetReturnValueRequest) String() string

type SetReturnValueResponse

type SetReturnValueResponse struct {
}

func (*SetReturnValueResponse) Descriptor

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

func (*SetReturnValueResponse) ProtoMessage

func (*SetReturnValueResponse) ProtoMessage()

func (*SetReturnValueResponse) Reset

func (m *SetReturnValueResponse) Reset()

func (*SetReturnValueResponse) String

func (m *SetReturnValueResponse) String() string

type Shape

type Shape struct {
	// The element type for this shape.
	ElementType PrimitiveType `protobuf:"varint,2,opt,name=element_type,json=elementType,enum=xla.PrimitiveType" json:"element_type,omitempty"`
	// The size (number of elements) for each dimension.
	// In XLA, dimensions are numbered from 0 to N-1 for an
	// N-dimensional array. The first element of 'dimensions' is the size of
	// dimension 0, the second element is the size of dimension 1, and so forth.
	// Empty list indicates a scalar.
	Dimensions []int64 `protobuf:"varint,3,rep,packed,name=dimensions" json:"dimensions,omitempty"`
	// For tuples only, the shapes of constitutent shapes in the tuple sequence.
	TupleShapes []*Shape `protobuf:"bytes,4,rep,name=tuple_shapes,json=tupleShapes" json:"tuple_shapes,omitempty"`
	// The layout used to back this shape.
	Layout *Layout `protobuf:"bytes,5,opt,name=layout" json:"layout,omitempty"`
}

A shape describes the number of dimensions in the array, the size of each dimension, and the primitive component type.

Tuples are a special case in that they have rank zero and have tuple_shapes defined.

See the XLA documentation for more information on shapes and layouts.

func (*Shape) Descriptor

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

func (*Shape) GetDimensions

func (m *Shape) GetDimensions() []int64

func (*Shape) GetElementType

func (m *Shape) GetElementType() PrimitiveType

func (*Shape) GetLayout

func (m *Shape) GetLayout() *Layout

func (*Shape) GetTupleShapes

func (m *Shape) GetTupleShapes() []*Shape

func (*Shape) ProtoMessage

func (*Shape) ProtoMessage()

func (*Shape) Reset

func (m *Shape) Reset()

func (*Shape) String

func (m *Shape) String() string

type SliceRequest

type SliceRequest struct {
	Operand      *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	StartIndices []int64                `protobuf:"varint,3,rep,packed,name=start_indices,json=startIndices" json:"start_indices,omitempty"`
	LimitIndices []int64                `protobuf:"varint,4,rep,packed,name=limit_indices,json=limitIndices" json:"limit_indices,omitempty"`
	Stride       []int64                `protobuf:"varint,5,rep,packed,name=stride" json:"stride,omitempty"`
}

func (*SliceRequest) Descriptor

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

func (*SliceRequest) GetLimitIndices

func (m *SliceRequest) GetLimitIndices() []int64

func (*SliceRequest) GetOperand

func (m *SliceRequest) GetOperand() *ComputationDataHandle

func (*SliceRequest) GetStartIndices

func (m *SliceRequest) GetStartIndices() []int64

func (*SliceRequest) GetStride

func (m *SliceRequest) GetStride() []int64

func (*SliceRequest) ProtoMessage

func (*SliceRequest) ProtoMessage()

func (*SliceRequest) Reset

func (m *SliceRequest) Reset()

func (*SliceRequest) String

func (m *SliceRequest) String() string

type SnapshotComputationRequest

type SnapshotComputationRequest struct {
	Computation *ComputationHandle `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
}

func (*SnapshotComputationRequest) Descriptor

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

func (*SnapshotComputationRequest) GetComputation

func (m *SnapshotComputationRequest) GetComputation() *ComputationHandle

func (*SnapshotComputationRequest) ProtoMessage

func (*SnapshotComputationRequest) ProtoMessage()

func (*SnapshotComputationRequest) Reset

func (m *SnapshotComputationRequest) Reset()

func (*SnapshotComputationRequest) String

func (m *SnapshotComputationRequest) String() string

type SnapshotComputationResponse

type SnapshotComputationResponse struct {
	Module *xla1.SessionModule `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
}

func (*SnapshotComputationResponse) Descriptor

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

func (*SnapshotComputationResponse) GetModule

func (*SnapshotComputationResponse) ProtoMessage

func (*SnapshotComputationResponse) ProtoMessage()

func (*SnapshotComputationResponse) Reset

func (m *SnapshotComputationResponse) Reset()

func (*SnapshotComputationResponse) String

func (m *SnapshotComputationResponse) String() string

type SpecializeRequest

type SpecializeRequest struct {
	Computation *ComputationHandle  `protobuf:"bytes,1,opt,name=computation" json:"computation,omitempty"`
	Arguments   []*GlobalDataHandle `protobuf:"bytes,2,rep,name=arguments" json:"arguments,omitempty"`
}

func (*SpecializeRequest) Descriptor

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

func (*SpecializeRequest) GetArguments

func (m *SpecializeRequest) GetArguments() []*GlobalDataHandle

func (*SpecializeRequest) GetComputation

func (m *SpecializeRequest) GetComputation() *ComputationHandle

func (*SpecializeRequest) ProtoMessage

func (*SpecializeRequest) ProtoMessage()

func (*SpecializeRequest) Reset

func (m *SpecializeRequest) Reset()

func (*SpecializeRequest) String

func (m *SpecializeRequest) String() string

type SpecializeResponse

type SpecializeResponse struct {
}

func (*SpecializeResponse) Descriptor

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

func (*SpecializeResponse) ProtoMessage

func (*SpecializeResponse) ProtoMessage()

func (*SpecializeResponse) Reset

func (m *SpecializeResponse) Reset()

func (*SpecializeResponse) String

func (m *SpecializeResponse) String() string

type TernaryOpRequest

type TernaryOpRequest struct {
	Triop TernaryOperation       `protobuf:"varint,2,opt,name=triop,enum=xla.TernaryOperation" json:"triop,omitempty"`
	Lhs   *ComputationDataHandle `protobuf:"bytes,3,opt,name=lhs" json:"lhs,omitempty"`
	Rhs   *ComputationDataHandle `protobuf:"bytes,4,opt,name=rhs" json:"rhs,omitempty"`
	Ehs   *ComputationDataHandle `protobuf:"bytes,5,opt,name=ehs" json:"ehs,omitempty"`
}

func (*TernaryOpRequest) Descriptor

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

func (*TernaryOpRequest) GetEhs

func (*TernaryOpRequest) GetLhs

func (*TernaryOpRequest) GetRhs

func (*TernaryOpRequest) GetTriop

func (m *TernaryOpRequest) GetTriop() TernaryOperation

func (*TernaryOpRequest) ProtoMessage

func (*TernaryOpRequest) ProtoMessage()

func (*TernaryOpRequest) Reset

func (m *TernaryOpRequest) Reset()

func (*TernaryOpRequest) String

func (m *TernaryOpRequest) String() string

type TernaryOperation

type TernaryOperation int32
const (
	TernaryOperation_TRIOP_INVALID TernaryOperation = 0
	// Given a predicate and two operands, selects operand0 if the predicate is
	// true and operand1 if the predicate is false.
	TernaryOperation_TRIOP_SELECT TernaryOperation = 1
	// Updates operand0 at index operand1 with value operand2 and outputs the
	// updated value.
	TernaryOperation_TRIOP_UPDATE TernaryOperation = 2
	// Given a min, max and an operand returns the operand if between min and max,
	// else returns min if operand is less than min or max if operand is greater
	// than max.
	TernaryOperation_TRIOP_CLAMP TernaryOperation = 3
)

func (TernaryOperation) EnumDescriptor

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

func (TernaryOperation) String

func (x TernaryOperation) String() string

type TraceRequest

type TraceRequest struct {
	Tag     string                 `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"`
	Operand *ComputationDataHandle `protobuf:"bytes,3,opt,name=operand" json:"operand,omitempty"`
}

func (*TraceRequest) Descriptor

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

func (*TraceRequest) GetOperand

func (m *TraceRequest) GetOperand() *ComputationDataHandle

func (*TraceRequest) GetTag

func (m *TraceRequest) GetTag() string

func (*TraceRequest) ProtoMessage

func (*TraceRequest) ProtoMessage()

func (*TraceRequest) Reset

func (m *TraceRequest) Reset()

func (*TraceRequest) String

func (m *TraceRequest) String() string

type TransferFromOutfeedRequest

type TransferFromOutfeedRequest struct {
	// This optional field directs the service to return the literal in this
	// layout. A shape is used to hold the layout to accommodate tuples.
	ShapeWithLayout *Shape        `protobuf:"bytes,1,opt,name=shape_with_layout,json=shapeWithLayout" json:"shape_with_layout,omitempty"`
	ReplicaId       int64         `protobuf:"varint,2,opt,name=replica_id,json=replicaId" json:"replica_id,omitempty"`
	DeviceHandle    *DeviceHandle `protobuf:"bytes,3,opt,name=device_handle,json=deviceHandle" json:"device_handle,omitempty"`
}

func (*TransferFromOutfeedRequest) Descriptor

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

func (*TransferFromOutfeedRequest) GetDeviceHandle

func (m *TransferFromOutfeedRequest) GetDeviceHandle() *DeviceHandle

func (*TransferFromOutfeedRequest) GetReplicaId

func (m *TransferFromOutfeedRequest) GetReplicaId() int64

func (*TransferFromOutfeedRequest) GetShapeWithLayout

func (m *TransferFromOutfeedRequest) GetShapeWithLayout() *Shape

func (*TransferFromOutfeedRequest) ProtoMessage

func (*TransferFromOutfeedRequest) ProtoMessage()

func (*TransferFromOutfeedRequest) Reset

func (m *TransferFromOutfeedRequest) Reset()

func (*TransferFromOutfeedRequest) String

func (m *TransferFromOutfeedRequest) String() string

type TransferFromOutfeedResponse

type TransferFromOutfeedResponse struct {
	Literal *LiteralProto `protobuf:"bytes,1,opt,name=literal" json:"literal,omitempty"`
}

func (*TransferFromOutfeedResponse) Descriptor

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

func (*TransferFromOutfeedResponse) GetLiteral

func (m *TransferFromOutfeedResponse) GetLiteral() *LiteralProto

func (*TransferFromOutfeedResponse) ProtoMessage

func (*TransferFromOutfeedResponse) ProtoMessage()

func (*TransferFromOutfeedResponse) Reset

func (m *TransferFromOutfeedResponse) Reset()

func (*TransferFromOutfeedResponse) String

func (m *TransferFromOutfeedResponse) String() string

type TransferToClientRequest

type TransferToClientRequest struct {
	Data *GlobalDataHandle `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
	// This optional field directs the service to return the literal in this
	// layout. A shape is used to hold the layout to accommodate tuples.
	ShapeWithLayout *Shape `protobuf:"bytes,2,opt,name=shape_with_layout,json=shapeWithLayout" json:"shape_with_layout,omitempty"`
}

func (*TransferToClientRequest) Descriptor

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

func (*TransferToClientRequest) GetData

func (*TransferToClientRequest) GetShapeWithLayout

func (m *TransferToClientRequest) GetShapeWithLayout() *Shape

func (*TransferToClientRequest) ProtoMessage

func (*TransferToClientRequest) ProtoMessage()

func (*TransferToClientRequest) Reset

func (m *TransferToClientRequest) Reset()

func (*TransferToClientRequest) String

func (m *TransferToClientRequest) String() string

type TransferToClientResponse

type TransferToClientResponse struct {
	Literal *LiteralProto `protobuf:"bytes,1,opt,name=literal" json:"literal,omitempty"`
}

func (*TransferToClientResponse) Descriptor

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

func (*TransferToClientResponse) GetLiteral

func (m *TransferToClientResponse) GetLiteral() *LiteralProto

func (*TransferToClientResponse) ProtoMessage

func (*TransferToClientResponse) ProtoMessage()

func (*TransferToClientResponse) Reset

func (m *TransferToClientResponse) Reset()

func (*TransferToClientResponse) String

func (m *TransferToClientResponse) String() string

type TransferToInfeedRequest

type TransferToInfeedRequest struct {
	Literal      *LiteralProto `protobuf:"bytes,1,opt,name=literal" json:"literal,omitempty"`
	ReplicaId    int64         `protobuf:"varint,2,opt,name=replica_id,json=replicaId" json:"replica_id,omitempty"`
	DeviceHandle *DeviceHandle `protobuf:"bytes,3,opt,name=device_handle,json=deviceHandle" json:"device_handle,omitempty"`
}

func (*TransferToInfeedRequest) Descriptor

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

func (*TransferToInfeedRequest) GetDeviceHandle

func (m *TransferToInfeedRequest) GetDeviceHandle() *DeviceHandle

func (*TransferToInfeedRequest) GetLiteral

func (m *TransferToInfeedRequest) GetLiteral() *LiteralProto

func (*TransferToInfeedRequest) GetReplicaId

func (m *TransferToInfeedRequest) GetReplicaId() int64

func (*TransferToInfeedRequest) ProtoMessage

func (*TransferToInfeedRequest) ProtoMessage()

func (*TransferToInfeedRequest) Reset

func (m *TransferToInfeedRequest) Reset()

func (*TransferToInfeedRequest) String

func (m *TransferToInfeedRequest) String() string

type TransferToInfeedResponse

type TransferToInfeedResponse struct {
}

func (*TransferToInfeedResponse) Descriptor

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

func (*TransferToInfeedResponse) ProtoMessage

func (*TransferToInfeedResponse) ProtoMessage()

func (*TransferToInfeedResponse) Reset

func (m *TransferToInfeedResponse) Reset()

func (*TransferToInfeedResponse) String

func (m *TransferToInfeedResponse) String() string

type TransferToServerRequest

type TransferToServerRequest struct {
	Literal      *LiteralProto `protobuf:"bytes,1,opt,name=literal" json:"literal,omitempty"`
	DeviceHandle *DeviceHandle `protobuf:"bytes,2,opt,name=device_handle,json=deviceHandle" json:"device_handle,omitempty"`
}

func (*TransferToServerRequest) Descriptor

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

func (*TransferToServerRequest) GetDeviceHandle

func (m *TransferToServerRequest) GetDeviceHandle() *DeviceHandle

func (*TransferToServerRequest) GetLiteral

func (m *TransferToServerRequest) GetLiteral() *LiteralProto

func (*TransferToServerRequest) ProtoMessage

func (*TransferToServerRequest) ProtoMessage()

func (*TransferToServerRequest) Reset

func (m *TransferToServerRequest) Reset()

func (*TransferToServerRequest) String

func (m *TransferToServerRequest) String() string

type TransferToServerResponse

type TransferToServerResponse struct {
	Data *GlobalDataHandle `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}

func (*TransferToServerResponse) Descriptor

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

func (*TransferToServerResponse) GetData

func (*TransferToServerResponse) ProtoMessage

func (*TransferToServerResponse) ProtoMessage()

func (*TransferToServerResponse) Reset

func (m *TransferToServerResponse) Reset()

func (*TransferToServerResponse) String

func (m *TransferToServerResponse) String() string

type TransposeRequest

type TransposeRequest struct {
	Operand *ComputationDataHandle `protobuf:"bytes,2,opt,name=operand" json:"operand,omitempty"`
	// The permutation of the operand's dimensions (in the range 0 to n-1).
	Dimensions []int64 `protobuf:"varint,3,rep,packed,name=dimensions" json:"dimensions,omitempty"`
}

func (*TransposeRequest) Descriptor

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

func (*TransposeRequest) GetDimensions

func (m *TransposeRequest) GetDimensions() []int64

func (*TransposeRequest) GetOperand

func (m *TransposeRequest) GetOperand() *ComputationDataHandle

func (*TransposeRequest) ProtoMessage

func (*TransposeRequest) ProtoMessage()

func (*TransposeRequest) Reset

func (m *TransposeRequest) Reset()

func (*TransposeRequest) String

func (m *TransposeRequest) String() string

type UnaryOpRequest

type UnaryOpRequest struct {
	Unop    UnaryOperation         `protobuf:"varint,2,opt,name=unop,enum=xla.UnaryOperation" json:"unop,omitempty"`
	Operand *ComputationDataHandle `protobuf:"bytes,3,opt,name=operand" json:"operand,omitempty"`
}

func (*UnaryOpRequest) Descriptor

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

func (*UnaryOpRequest) GetOperand

func (m *UnaryOpRequest) GetOperand() *ComputationDataHandle

func (*UnaryOpRequest) GetUnop

func (m *UnaryOpRequest) GetUnop() UnaryOperation

func (*UnaryOpRequest) ProtoMessage

func (*UnaryOpRequest) ProtoMessage()

func (*UnaryOpRequest) Reset

func (m *UnaryOpRequest) Reset()

func (*UnaryOpRequest) String

func (m *UnaryOpRequest) String() string

type UnaryOperation

type UnaryOperation int32
const (
	UnaryOperation_UNOP_INVALID UnaryOperation = 0
	// Elementwise, logical negation
	UnaryOperation_UNOP_LOGICAL_NOT UnaryOperation = 1
	// Elementwise, computes e^x.
	UnaryOperation_UNOP_EXP UnaryOperation = 2
	// Elementwise, computes -x.
	UnaryOperation_UNOP_NEGATE UnaryOperation = 3
	// Puts the elements in the operand into sorted order.
	UnaryOperation_UNOP_SORT UnaryOperation = 4
	// Elementwise, computes tanh(x).
	UnaryOperation_UNOP_TANH UnaryOperation = 5
	// Elementwise, computes the natural logarithm of x.
	UnaryOperation_UNOP_LOG UnaryOperation = 6
	// Elementwise, computes the floor of x.
	UnaryOperation_UNOP_FLOOR UnaryOperation = 7
	// Elementwise, computes the ceil of x.
	UnaryOperation_UNOP_CEIL UnaryOperation = 8
	// Elementwise, computes the abs of x.
	UnaryOperation_UNOP_ABS UnaryOperation = 9
	// Elementwise, computes the sign of x.
	UnaryOperation_UNOP_SIGN UnaryOperation = 10
	// Elementwise, tests if values are finite (not NaN or inf)
	UnaryOperation_UNOP_IS_FINITE UnaryOperation = 11
	// Elementwise, computes the cosine of x.
	UnaryOperation_UNOP_COS UnaryOperation = 12
)

func (UnaryOperation) EnumDescriptor

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

func (UnaryOperation) String

func (x UnaryOperation) String() string

type UnpackRequest

type UnpackRequest struct {
	Data *GlobalDataHandle `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}

func (*UnpackRequest) Descriptor

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

func (*UnpackRequest) GetData

func (m *UnpackRequest) GetData() *GlobalDataHandle

func (*UnpackRequest) ProtoMessage

func (*UnpackRequest) ProtoMessage()

func (*UnpackRequest) Reset

func (m *UnpackRequest) Reset()

func (*UnpackRequest) String

func (m *UnpackRequest) String() string

type UnpackResponse

type UnpackResponse struct {
	TiedData []*GlobalDataHandle `protobuf:"bytes,1,rep,name=tied_data,json=tiedData" json:"tied_data,omitempty"`
}

func (*UnpackResponse) Descriptor

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

func (*UnpackResponse) GetTiedData

func (m *UnpackResponse) GetTiedData() []*GlobalDataHandle

func (*UnpackResponse) ProtoMessage

func (*UnpackResponse) ProtoMessage()

func (*UnpackResponse) Reset

func (m *UnpackResponse) Reset()

func (*UnpackResponse) String

func (m *UnpackResponse) String() string

type UnregisterRequest

type UnregisterRequest struct {
	Data *GlobalDataHandle `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}

func (*UnregisterRequest) Descriptor

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

func (*UnregisterRequest) GetData

func (m *UnregisterRequest) GetData() *GlobalDataHandle

func (*UnregisterRequest) ProtoMessage

func (*UnregisterRequest) ProtoMessage()

func (*UnregisterRequest) Reset

func (m *UnregisterRequest) Reset()

func (*UnregisterRequest) String

func (m *UnregisterRequest) String() string

type UnregisterResponse

type UnregisterResponse struct {
}

func (*UnregisterResponse) Descriptor

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

func (*UnregisterResponse) ProtoMessage

func (*UnregisterResponse) ProtoMessage()

func (*UnregisterResponse) Reset

func (m *UnregisterResponse) Reset()

func (*UnregisterResponse) String

func (m *UnregisterResponse) String() string

type VariadicOpRequest

type VariadicOpRequest struct {
	Varop    VariadicOperation        `protobuf:"varint,2,opt,name=varop,enum=xla.VariadicOperation" json:"varop,omitempty"`
	Operands []*ComputationDataHandle `protobuf:"bytes,3,rep,name=operands" json:"operands,omitempty"`
}

func (*VariadicOpRequest) Descriptor

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

func (*VariadicOpRequest) GetOperands

func (m *VariadicOpRequest) GetOperands() []*ComputationDataHandle

func (*VariadicOpRequest) GetVarop

func (m *VariadicOpRequest) GetVarop() VariadicOperation

func (*VariadicOpRequest) ProtoMessage

func (*VariadicOpRequest) ProtoMessage()

func (*VariadicOpRequest) Reset

func (m *VariadicOpRequest) Reset()

func (*VariadicOpRequest) String

func (m *VariadicOpRequest) String() string

type VariadicOperation

type VariadicOperation int32
const (
	VariadicOperation_VAROP_INVALID VariadicOperation = 0
	// Creates a tuple from its operands.
	VariadicOperation_VAROP_TUPLE VariadicOperation = 1
)

func (VariadicOperation) EnumDescriptor

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

func (VariadicOperation) String

func (x VariadicOperation) String() string

type WaitForExecutionRequest

type WaitForExecutionRequest struct {
	Execution *ExecutionHandle `protobuf:"bytes,1,opt,name=execution" json:"execution,omitempty"`
}

func (*WaitForExecutionRequest) Descriptor

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

func (*WaitForExecutionRequest) GetExecution

func (m *WaitForExecutionRequest) GetExecution() *ExecutionHandle

func (*WaitForExecutionRequest) ProtoMessage

func (*WaitForExecutionRequest) ProtoMessage()

func (*WaitForExecutionRequest) Reset

func (m *WaitForExecutionRequest) Reset()

func (*WaitForExecutionRequest) String

func (m *WaitForExecutionRequest) String() string

type WaitForExecutionResponse

type WaitForExecutionResponse struct {
	Output  *GlobalDataHandle `protobuf:"bytes,1,opt,name=output" json:"output,omitempty"`
	Profile *ExecutionProfile `protobuf:"bytes,2,opt,name=profile" json:"profile,omitempty"`
}

func (*WaitForExecutionResponse) Descriptor

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

func (*WaitForExecutionResponse) GetOutput

func (*WaitForExecutionResponse) GetProfile

func (m *WaitForExecutionResponse) GetProfile() *ExecutionProfile

func (*WaitForExecutionResponse) ProtoMessage

func (*WaitForExecutionResponse) ProtoMessage()

func (*WaitForExecutionResponse) Reset

func (m *WaitForExecutionResponse) Reset()

func (*WaitForExecutionResponse) String

func (m *WaitForExecutionResponse) String() string

type WhileRequest

type WhileRequest struct {
	Condition *ComputationHandle     `protobuf:"bytes,2,opt,name=condition" json:"condition,omitempty"`
	Body      *ComputationHandle     `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"`
	Init      *ComputationDataHandle `protobuf:"bytes,4,opt,name=init" json:"init,omitempty"`
}

func (*WhileRequest) Descriptor

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

func (*WhileRequest) GetBody

func (m *WhileRequest) GetBody() *ComputationHandle

func (*WhileRequest) GetCondition

func (m *WhileRequest) GetCondition() *ComputationHandle

func (*WhileRequest) GetInit

func (m *WhileRequest) GetInit() *ComputationDataHandle

func (*WhileRequest) ProtoMessage

func (*WhileRequest) ProtoMessage()

func (*WhileRequest) Reset

func (m *WhileRequest) Reset()

func (*WhileRequest) String

func (m *WhileRequest) String() string

type Window

type Window struct {
	Dimensions []*WindowDimension `protobuf:"bytes,1,rep,name=dimensions" json:"dimensions,omitempty"`
}

Describes the windowing in an operation such as convolution.

The window is moved across a base area and for each position of the window a computation is performed. The field below describes the window and the movement of the window across a base area.

func (*Window) Descriptor

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

func (*Window) GetDimensions

func (m *Window) GetDimensions() []*WindowDimension

func (*Window) ProtoMessage

func (*Window) ProtoMessage()

func (*Window) Reset

func (m *Window) Reset()

func (*Window) String

func (m *Window) String() string

type WindowDimension

type WindowDimension struct {
	// The size of the window in this dimension. For a rectangle, this would be
	// the width or height.
	Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
	// The stride at which the window moves across the base area in this
	// dimension. In other words, this is the spacing between different
	// positions of the window in this dimension.
	Stride int64 `protobuf:"varint,2,opt,name=stride" json:"stride,omitempty"`
	// If positive, means the amount of padding with zeroes to add to the base
	// area at the low end of this dimension; if negative, its negative means the
	// number of elements removed from the low end of this dimension. For example,
	// in the horizontal dimension of a rectangle, this would be the number of
	// zeroes to pad on the left, given that indices increase when going right.
	PaddingLow int64 `protobuf:"varint,3,opt,name=padding_low,json=paddingLow" json:"padding_low,omitempty"`
	// As padding_low, but on the high end of this dimension. For
	// example, in the horizontal dimension of a rectangle, this would
	// be the number of zeroes to pad on the right, given that indices
	// increase when going right.
	PaddingHigh int64 `protobuf:"varint,4,opt,name=padding_high,json=paddingHigh" json:"padding_high,omitempty"`
	// Dilation factor of the sliding window in this dimension. A dilation factor
	// of 1 means no dilation. window_dilation - 1 no-op entries ("holes") are
	// implicitly placed between each kernel element. See documentation for
	// convolution.
	WindowDilation int64 `protobuf:"varint,5,opt,name=window_dilation,json=windowDilation" json:"window_dilation,omitempty"`
	// Dilation factor of the base area in this dimension. A dilation factor of 1
	// means no dilation. base_dilation - 1 no-op entries ("holes") are implicitly
	// placed between each base area element. See documentation for convolution.
	BaseDilation int64 `protobuf:"varint,6,opt,name=base_dilation,json=baseDilation" json:"base_dilation,omitempty"`
}

func (*WindowDimension) Descriptor

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

func (*WindowDimension) GetBaseDilation

func (m *WindowDimension) GetBaseDilation() int64

func (*WindowDimension) GetPaddingHigh

func (m *WindowDimension) GetPaddingHigh() int64

func (*WindowDimension) GetPaddingLow

func (m *WindowDimension) GetPaddingLow() int64

func (*WindowDimension) GetSize

func (m *WindowDimension) GetSize() int64

func (*WindowDimension) GetStride

func (m *WindowDimension) GetStride() int64

func (*WindowDimension) GetWindowDilation

func (m *WindowDimension) GetWindowDilation() int64

func (*WindowDimension) ProtoMessage

func (*WindowDimension) ProtoMessage()

func (*WindowDimension) Reset

func (m *WindowDimension) Reset()

func (*WindowDimension) String

func (m *WindowDimension) String() string

Directories

Path Synopsis
Package service is a generated protocol buffer package.
Package service is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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