data

package
v0.0.0-...-3233e8b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 4 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

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",
		16: "BF16",
		12: "F64",
		15: "C64",
		18: "C128",
		13: "TUPLE",
		14: "OPAQUE_TYPE",
		17: "TOKEN",
	}
	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,
		"BF16":                   16,
		"F64":                    12,
		"C64":                    15,
		"C128":                   18,
		"TUPLE":                  13,
		"OPAQUE_TYPE":            14,
		"TOKEN":                  17,
	}
)

Enum value maps for PrimitiveType.

View Source
var (
	Format_name = map[int32]string{
		0: "INVALID_FORMAT",
		1: "DENSE",
	}
	Format_value = map[string]int32{
		"INVALID_FORMAT": 0,
		"DENSE":          1,
	}
)

Enum value maps for Format.

View Source
var (
	ProfileType_name = map[int32]string{
		0: "INVALID",
		1: "WINDOW",
		2: "FLAG",
		3: "INTEGER",
	}
	ProfileType_value = map[string]int32{
		"INVALID": 0,
		"WINDOW":  1,
		"FLAG":    2,
		"INTEGER": 3,
	}
)

Enum value maps for ProfileType.

View Source
var (
	ProfileSource_name = map[int32]string{
		0: "PROFILE_SOURCE_UNKNOWN_SOURCE",
		1: "PROFILE_SOURCE_EMBEDDED",
		2: "PROFILE_SOURCE_REMOTE",
	}
	ProfileSource_value = map[string]int32{
		"PROFILE_SOURCE_UNKNOWN_SOURCE": 0,
		"PROFILE_SOURCE_EMBEDDED":       1,
		"PROFILE_SOURCE_REMOTE":         2,
	}
)

Enum value maps for ProfileSource.

View Source
var (
	CompilationEvent_name = map[int32]string{
		0: "COMPILATION_EVENT_UNKNOWN_EVENT",
		1: "COMPILATION_EVENT_FIRST_COMPILATION",
		2: "COMPILATION_EVENT_RECOMPILATION",
	}
	CompilationEvent_value = map[string]int32{
		"COMPILATION_EVENT_UNKNOWN_EVENT":     0,
		"COMPILATION_EVENT_FIRST_COMPILATION": 1,
		"COMPILATION_EVENT_RECOMPILATION":     2,
	}
)

Enum value maps for CompilationEvent.

View Source
var (
	PaddingType_name = map[int32]string{
		0: "PADDING_INVALID",
		1: "PADDING_VALID",
		2: "PADDING_SAME",
	}
	PaddingType_value = map[string]int32{
		"PADDING_INVALID": 0,
		"PADDING_VALID":   1,
		"PADDING_SAME":    2,
	}
)

Enum value maps for PaddingType.

View Source
var (
	FftType_name = map[int32]string{
		0: "FFT",
		1: "IFFT",
		2: "RFFT",
		3: "IRFFT",
	}
	FftType_value = map[string]int32{
		"FFT":   0,
		"IFFT":  1,
		"RFFT":  2,
		"IRFFT": 3,
	}
)

Enum value maps for FftType.

View Source
var (
	RandomDistribution_name = map[int32]string{
		0: "RNG_INVALID",
		1: "RNG_UNIFORM",
		2: "RNG_NORMAL",
	}
	RandomDistribution_value = map[string]int32{
		"RNG_INVALID": 0,
		"RNG_UNIFORM": 1,
		"RNG_NORMAL":  2,
	}
)

Enum value maps for RandomDistribution.

View Source
var (
	RandomAlgorithm_name = map[int32]string{
		0: "RNG_DEFAULT",
		1: "RNG_THREE_FRY",
		2: "RNG_PHILOX",
	}
	RandomAlgorithm_value = map[string]int32{
		"RNG_DEFAULT":   0,
		"RNG_THREE_FRY": 1,
		"RNG_PHILOX":    2,
	}
)

Enum value maps for RandomAlgorithm.

View Source
var (
	ChannelHandle_ChannelType_name = map[int32]string{
		0: "CHANNEL_TYPE_INVALID",
		1: "DEVICE_TO_DEVICE",
		2: "DEVICE_TO_HOST",
		3: "HOST_TO_DEVICE",
	}
	ChannelHandle_ChannelType_value = map[string]int32{
		"CHANNEL_TYPE_INVALID": 0,
		"DEVICE_TO_DEVICE":     1,
		"DEVICE_TO_HOST":       2,
		"HOST_TO_DEVICE":       3,
	}
)

Enum value maps for ChannelHandle_ChannelType.

View Source
var (
	TriangularSolveOptions_Transpose_name = map[int32]string{
		0: "TRANSPOSE_INVALID",
		1: "NO_TRANSPOSE",
		2: "TRANSPOSE",
		3: "ADJOINT",
	}
	TriangularSolveOptions_Transpose_value = map[string]int32{
		"TRANSPOSE_INVALID": 0,
		"NO_TRANSPOSE":      1,
		"TRANSPOSE":         2,
		"ADJOINT":           3,
	}
)

Enum value maps for TriangularSolveOptions_Transpose.

View Source
var (
	OpSharding_Type_name = map[int32]string{
		0: "REPLICATED",
		1: "MAXIMAL",
		2: "TUPLE",
		3: "OTHER",
		4: "MANUAL",
	}
	OpSharding_Type_value = map[string]int32{
		"REPLICATED": 0,
		"MAXIMAL":    1,
		"TUPLE":      2,
		"OTHER":      3,
		"MANUAL":     4,
	}
)

Enum value maps for OpSharding_Type.

View Source
var (
	PrecisionConfig_Precision_name = map[int32]string{
		0: "DEFAULT",
		1: "HIGH",
		2: "HIGHEST",
	}
	PrecisionConfig_Precision_value = map[string]int32{
		"DEFAULT": 0,
		"HIGH":    1,
		"HIGHEST": 2,
	}
)

Enum value maps for PrecisionConfig_Precision.

View Source
var File_tensorflow_compiler_xla_xla_data_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ChannelHandle

type ChannelHandle struct {
	Handle int64                     `protobuf:"varint,1,opt,name=handle,proto3" json:"handle,omitempty"`
	Type   ChannelHandle_ChannelType `protobuf:"varint,2,opt,name=type,proto3,enum=xla.ChannelHandle_ChannelType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use ChannelHandle.ProtoReflect.Descriptor instead.

func (*ChannelHandle) GetHandle

func (x *ChannelHandle) GetHandle() int64

func (*ChannelHandle) GetType

func (*ChannelHandle) ProtoMessage

func (*ChannelHandle) ProtoMessage()

func (*ChannelHandle) ProtoReflect

func (x *ChannelHandle) ProtoReflect() protoreflect.Message

func (*ChannelHandle) Reset

func (x *ChannelHandle) Reset()

func (*ChannelHandle) String

func (x *ChannelHandle) String() string

type ChannelHandle_ChannelType

type ChannelHandle_ChannelType int32
const (
	// Invalid primitive type to serve as default.
	ChannelHandle_CHANNEL_TYPE_INVALID ChannelHandle_ChannelType = 0
	// A channel for sending data between devices.
	ChannelHandle_DEVICE_TO_DEVICE ChannelHandle_ChannelType = 1
	// A channel for sending data from the device to the host. Can only be used
	// with a Send operation.
	ChannelHandle_DEVICE_TO_HOST ChannelHandle_ChannelType = 2
	// A channel for sending data from the host to the device. Can only be used
	// with a Recv operation.
	ChannelHandle_HOST_TO_DEVICE ChannelHandle_ChannelType = 3
)

func (ChannelHandle_ChannelType) Descriptor

func (ChannelHandle_ChannelType) Enum

func (ChannelHandle_ChannelType) EnumDescriptor deprecated

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

Deprecated: Use ChannelHandle_ChannelType.Descriptor instead.

func (ChannelHandle_ChannelType) Number

func (ChannelHandle_ChannelType) String

func (x ChannelHandle_ChannelType) String() string

func (ChannelHandle_ChannelType) Type

type CholeskyOptions

type CholeskyOptions struct {

	// If true, uses the lower triangle of `a`. If false, uses the upper triangle
	// of `a`.
	Lower bool `protobuf:"varint,1,opt,name=lower,proto3" json:"lower,omitempty"`
	// contains filtered or unexported fields
}

func (*CholeskyOptions) Descriptor deprecated

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

Deprecated: Use CholeskyOptions.ProtoReflect.Descriptor instead.

func (*CholeskyOptions) GetLower

func (x *CholeskyOptions) GetLower() bool

func (*CholeskyOptions) ProtoMessage

func (*CholeskyOptions) ProtoMessage()

func (*CholeskyOptions) ProtoReflect

func (x *CholeskyOptions) ProtoReflect() protoreflect.Message

func (*CholeskyOptions) Reset

func (x *CholeskyOptions) Reset()

func (*CholeskyOptions) String

func (x *CholeskyOptions) String() string

type CompilationEvent

type CompilationEvent int32

The compilation event that triggered the use of the profile.

const (
	CompilationEvent_COMPILATION_EVENT_UNKNOWN_EVENT     CompilationEvent = 0
	CompilationEvent_COMPILATION_EVENT_FIRST_COMPILATION CompilationEvent = 1
	CompilationEvent_COMPILATION_EVENT_RECOMPILATION     CompilationEvent = 2
)

func (CompilationEvent) Descriptor

func (CompilationEvent) Enum

func (CompilationEvent) EnumDescriptor deprecated

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

Deprecated: Use CompilationEvent.Descriptor instead.

func (CompilationEvent) Number

func (CompilationEvent) String

func (x CompilationEvent) String() string

func (CompilationEvent) Type

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,proto3" 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,proto3" json:"transcendental_count,omitempty"`
	// contains filtered or unexported fields
}

Statistics of a computation.

func (*ComputationStats) Descriptor deprecated

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

Deprecated: Use ComputationStats.ProtoReflect.Descriptor instead.

func (*ComputationStats) GetFlopCount

func (x *ComputationStats) GetFlopCount() float64

func (*ComputationStats) GetTranscendentalCount

func (x *ComputationStats) GetTranscendentalCount() float64

func (*ComputationStats) ProtoMessage

func (*ComputationStats) ProtoMessage()

func (*ComputationStats) ProtoReflect

func (x *ComputationStats) ProtoReflect() protoreflect.Message

func (*ComputationStats) Reset

func (x *ComputationStats) Reset()

func (*ComputationStats) String

func (x *ComputationStats) String() string

type ConvolutionDimensionNumbers

type ConvolutionDimensionNumbers struct {

	// The number of the dimension that represents batch in the input.
	InputBatchDimension int64 `protobuf:"varint,7,opt,name=input_batch_dimension,json=inputBatchDimension,proto3" json:"input_batch_dimension,omitempty"`
	// The number of the dimension that represents features in the input.
	InputFeatureDimension int64 `` /* 127-byte string literal not displayed */
	// The dimension numbers for the spatial dimensions that the window
	// moves through in the input.
	InputSpatialDimensions []int64 `` /* 138-byte string literal not displayed */
	// The number of the dimension that represents input features in the
	// convolutional kernel (rhs).
	KernelInputFeatureDimension int64 `` /* 147-byte string literal not displayed */
	// The number of the dimension that represents output features in
	// the convolutional kernel (rhs).
	KernelOutputFeatureDimension int64 `` /* 150-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 `` /* 140-byte string literal not displayed */
	// The number of the dimension that represents batch in the output.
	OutputBatchDimension int64 `protobuf:"varint,9,opt,name=output_batch_dimension,json=outputBatchDimension,proto3" json:"output_batch_dimension,omitempty"`
	// The number of the dimension that represents features in the output.
	OutputFeatureDimension int64 `` /* 131-byte string literal not displayed */
	// The dimension numbers for the spatial dimensions that the window
	// moves through in the output.
	OutputSpatialDimensions []int64 `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConvolutionDimensionNumbers) Descriptor deprecated

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

Deprecated: Use ConvolutionDimensionNumbers.ProtoReflect.Descriptor instead.

func (*ConvolutionDimensionNumbers) GetInputBatchDimension

func (x *ConvolutionDimensionNumbers) GetInputBatchDimension() int64

func (*ConvolutionDimensionNumbers) GetInputFeatureDimension

func (x *ConvolutionDimensionNumbers) GetInputFeatureDimension() int64

func (*ConvolutionDimensionNumbers) GetInputSpatialDimensions

func (x *ConvolutionDimensionNumbers) GetInputSpatialDimensions() []int64

func (*ConvolutionDimensionNumbers) GetKernelInputFeatureDimension

func (x *ConvolutionDimensionNumbers) GetKernelInputFeatureDimension() int64

func (*ConvolutionDimensionNumbers) GetKernelOutputFeatureDimension

func (x *ConvolutionDimensionNumbers) GetKernelOutputFeatureDimension() int64

func (*ConvolutionDimensionNumbers) GetKernelSpatialDimensions

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

func (*ConvolutionDimensionNumbers) GetOutputBatchDimension

func (x *ConvolutionDimensionNumbers) GetOutputBatchDimension() int64

func (*ConvolutionDimensionNumbers) GetOutputFeatureDimension

func (x *ConvolutionDimensionNumbers) GetOutputFeatureDimension() int64

func (*ConvolutionDimensionNumbers) GetOutputSpatialDimensions

func (x *ConvolutionDimensionNumbers) GetOutputSpatialDimensions() []int64

func (*ConvolutionDimensionNumbers) ProtoMessage

func (*ConvolutionDimensionNumbers) ProtoMessage()

func (*ConvolutionDimensionNumbers) ProtoReflect

func (*ConvolutionDimensionNumbers) Reset

func (x *ConvolutionDimensionNumbers) Reset()

func (*ConvolutionDimensionNumbers) String

func (x *ConvolutionDimensionNumbers) String() string

type CustomCallOutputOperandAliasing

type CustomCallOutputOperandAliasing struct {
	OutputShapeIndex  []int64 `protobuf:"varint,1,rep,packed,name=output_shape_index,json=outputShapeIndex,proto3" json:"output_shape_index,omitempty"`
	OperandIndex      int64   `protobuf:"varint,2,opt,name=operand_index,json=operandIndex,proto3" json:"operand_index,omitempty"`
	OperandShapeIndex []int64 `protobuf:"varint,3,rep,packed,name=operand_shape_index,json=operandShapeIndex,proto3" json:"operand_shape_index,omitempty"`
	// contains filtered or unexported fields
}

Specifies a pair of output/operand buffers for kCustomCall that alias each other.

func (*CustomCallOutputOperandAliasing) Descriptor deprecated

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

Deprecated: Use CustomCallOutputOperandAliasing.ProtoReflect.Descriptor instead.

func (*CustomCallOutputOperandAliasing) GetOperandIndex

func (x *CustomCallOutputOperandAliasing) GetOperandIndex() int64

func (*CustomCallOutputOperandAliasing) GetOperandShapeIndex

func (x *CustomCallOutputOperandAliasing) GetOperandShapeIndex() []int64

func (*CustomCallOutputOperandAliasing) GetOutputShapeIndex

func (x *CustomCallOutputOperandAliasing) GetOutputShapeIndex() []int64

func (*CustomCallOutputOperandAliasing) ProtoMessage

func (*CustomCallOutputOperandAliasing) ProtoMessage()

func (*CustomCallOutputOperandAliasing) ProtoReflect

func (*CustomCallOutputOperandAliasing) Reset

func (*CustomCallOutputOperandAliasing) String

type DeviceAssignmentProto

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

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 deprecated

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

Deprecated: Use DeviceAssignmentProto.ProtoReflect.Descriptor instead.

func (*DeviceAssignmentProto) GetComputationCount

func (x *DeviceAssignmentProto) GetComputationCount() int32

func (*DeviceAssignmentProto) GetComputationDevices

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

func (*DeviceAssignmentProto) GetReplicaCount

func (x *DeviceAssignmentProto) GetReplicaCount() int32

func (*DeviceAssignmentProto) ProtoMessage

func (*DeviceAssignmentProto) ProtoMessage()

func (*DeviceAssignmentProto) ProtoReflect

func (x *DeviceAssignmentProto) ProtoReflect() protoreflect.Message

func (*DeviceAssignmentProto) Reset

func (x *DeviceAssignmentProto) Reset()

func (*DeviceAssignmentProto) String

func (x *DeviceAssignmentProto) String() string

type DeviceAssignmentProto_ComputationDevice

type DeviceAssignmentProto_ComputationDevice struct {
	ReplicaDeviceIds []int32 `protobuf:"varint,1,rep,packed,name=replica_device_ids,json=replicaDeviceIds,proto3" json:"replica_device_ids,omitempty"`
	// contains filtered or unexported fields
}

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

func (*DeviceAssignmentProto_ComputationDevice) Descriptor deprecated

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

Deprecated: Use DeviceAssignmentProto_ComputationDevice.ProtoReflect.Descriptor instead.

func (*DeviceAssignmentProto_ComputationDevice) GetReplicaDeviceIds

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

func (*DeviceAssignmentProto_ComputationDevice) ProtoMessage

func (*DeviceAssignmentProto_ComputationDevice) ProtoReflect

func (*DeviceAssignmentProto_ComputationDevice) Reset

func (*DeviceAssignmentProto_ComputationDevice) String

type DeviceHandle

type DeviceHandle struct {
	Handle int64 `protobuf:"varint,1,opt,name=handle,proto3" 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,proto3" json:"device_count,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use DeviceHandle.ProtoReflect.Descriptor instead.

func (*DeviceHandle) GetDeviceCount

func (x *DeviceHandle) GetDeviceCount() int64

func (*DeviceHandle) GetHandle

func (x *DeviceHandle) GetHandle() int64

func (*DeviceHandle) ProtoMessage

func (*DeviceHandle) ProtoMessage()

func (*DeviceHandle) ProtoReflect

func (x *DeviceHandle) ProtoReflect() protoreflect.Message

func (*DeviceHandle) Reset

func (x *DeviceHandle) Reset()

func (*DeviceHandle) String

func (x *DeviceHandle) String() string

type DotDimensionNumbers

type DotDimensionNumbers struct {

	// The dimension numbers that represent the 'lhs' contracting dimensions.
	LhsContractingDimensions []int64 `` /* 143-byte string literal not displayed */
	// The dimension numbers that represent the 'rhs' contracting dimensions.
	RhsContractingDimensions []int64 `` /* 143-byte string literal not displayed */
	// The dimension numbers that represent the 'lhs' batch dimensions.
	LhsBatchDimensions []int64 `protobuf:"varint,3,rep,packed,name=lhs_batch_dimensions,json=lhsBatchDimensions,proto3" json:"lhs_batch_dimensions,omitempty"`
	// The dimension numbers that represent the 'rhs' batch dimensions.
	RhsBatchDimensions []int64 `protobuf:"varint,4,rep,packed,name=rhs_batch_dimensions,json=rhsBatchDimensions,proto3" json:"rhs_batch_dimensions,omitempty"`
	// contains filtered or unexported fields
}

func (*DotDimensionNumbers) Descriptor deprecated

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

Deprecated: Use DotDimensionNumbers.ProtoReflect.Descriptor instead.

func (*DotDimensionNumbers) GetLhsBatchDimensions

func (x *DotDimensionNumbers) GetLhsBatchDimensions() []int64

func (*DotDimensionNumbers) GetLhsContractingDimensions

func (x *DotDimensionNumbers) GetLhsContractingDimensions() []int64

func (*DotDimensionNumbers) GetRhsBatchDimensions

func (x *DotDimensionNumbers) GetRhsBatchDimensions() []int64

func (*DotDimensionNumbers) GetRhsContractingDimensions

func (x *DotDimensionNumbers) GetRhsContractingDimensions() []int64

func (*DotDimensionNumbers) ProtoMessage

func (*DotDimensionNumbers) ProtoMessage()

func (*DotDimensionNumbers) ProtoReflect

func (x *DotDimensionNumbers) ProtoReflect() protoreflect.Message

func (*DotDimensionNumbers) Reset

func (x *DotDimensionNumbers) Reset()

func (*DotDimensionNumbers) String

func (x *DotDimensionNumbers) String() string

type ExecutionHandle

type ExecutionHandle struct {
	Handle int64 `protobuf:"varint,1,opt,name=handle,proto3" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ExecutionHandle) Descriptor deprecated

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

Deprecated: Use ExecutionHandle.ProtoReflect.Descriptor instead.

func (*ExecutionHandle) GetHandle

func (x *ExecutionHandle) GetHandle() int64

func (*ExecutionHandle) ProtoMessage

func (*ExecutionHandle) ProtoMessage()

func (*ExecutionHandle) ProtoReflect

func (x *ExecutionHandle) ProtoReflect() protoreflect.Message

func (*ExecutionHandle) Reset

func (x *ExecutionHandle) Reset()

func (*ExecutionHandle) String

func (x *ExecutionHandle) 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,proto3" 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,proto3" 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,proto3" 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,proto3" 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 `` /* 140-byte string literal not displayed */
	// The size of the binary code in the executable.
	ExecutableSizeInBytes int64 `` /* 129-byte string literal not displayed */
	// Whether this profile was drawn from a cache of profiles instead of from
	// execution on the hardware.
	ProfileCacheHit bool `protobuf:"varint,7,opt,name=profile_cache_hit,json=profileCacheHit,proto3" json:"profile_cache_hit,omitempty"`
	// contains filtered or unexported fields
}

Profile data from the execution of a computation.

func (*ExecutionProfile) Descriptor deprecated

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

Deprecated: Use ExecutionProfile.ProtoReflect.Descriptor instead.

func (*ExecutionProfile) GetCompilationCacheHit

func (x *ExecutionProfile) GetCompilationCacheHit() bool

func (*ExecutionProfile) GetCompileTimeMs

func (x *ExecutionProfile) GetCompileTimeMs() int64

func (*ExecutionProfile) GetComputeAndTransferTimeNs

func (x *ExecutionProfile) GetComputeAndTransferTimeNs() int64

func (*ExecutionProfile) GetComputeCycleCount

func (x *ExecutionProfile) GetComputeCycleCount() int64

func (*ExecutionProfile) GetComputeTimeNs

func (x *ExecutionProfile) GetComputeTimeNs() int64

func (*ExecutionProfile) GetExecutableSizeInBytes

func (x *ExecutionProfile) GetExecutableSizeInBytes() int64

func (*ExecutionProfile) GetProfileCacheHit

func (x *ExecutionProfile) GetProfileCacheHit() bool

func (*ExecutionProfile) ProtoMessage

func (*ExecutionProfile) ProtoMessage()

func (*ExecutionProfile) ProtoReflect

func (x *ExecutionProfile) ProtoReflect() protoreflect.Message

func (*ExecutionProfile) Reset

func (x *ExecutionProfile) Reset()

func (*ExecutionProfile) String

func (x *ExecutionProfile) String() string

type FftType

type FftType int32
const (
	FftType_FFT   FftType = 0 // Forward FFT; complex in, complex out.
	FftType_IFFT  FftType = 1 // Inverse FFT; complex in, complex out.
	FftType_RFFT  FftType = 2 // Forward real FFT; real in, fft_length / 2 + 1 complex out
	FftType_IRFFT FftType = 3 // Inverse real FFT; fft_length / 2 + 1 complex in,
)

func (FftType) Descriptor

func (FftType) Descriptor() protoreflect.EnumDescriptor

func (FftType) Enum

func (x FftType) Enum() *FftType

func (FftType) EnumDescriptor deprecated

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

Deprecated: Use FftType.Descriptor instead.

func (FftType) Number

func (x FftType) Number() protoreflect.EnumNumber

func (FftType) String

func (x FftType) String() string

func (FftType) Type

func (FftType) Type() protoreflect.EnumType

type Format

type Format int32

A format specifies the method used by a layout to store an array in memory.

const (
	// TODO(b/120869032): Rename this to FORMAT_NONE or something else which
	// better corresponds to its meaning.
	Format_INVALID_FORMAT Format = 0
	// The default layout, with exactly one storage location per element.
	Format_DENSE Format = 1
)

func (Format) Descriptor

func (Format) Descriptor() protoreflect.EnumDescriptor

func (Format) Enum

func (x Format) Enum() *Format

func (Format) EnumDescriptor deprecated

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

Deprecated: Use Format.Descriptor instead.

func (Format) Number

func (x Format) Number() protoreflect.EnumNumber

func (Format) String

func (x Format) String() string

func (Format) Type

func (Format) Type() protoreflect.EnumType

type FrontendAttributes

type FrontendAttributes struct {
	Map map[string]string `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

Generic map of attributes used to pass hints / configuration options from the Python frontend to the XLA backend.

func (*FrontendAttributes) Descriptor deprecated

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

Deprecated: Use FrontendAttributes.ProtoReflect.Descriptor instead.

func (*FrontendAttributes) GetMap

func (x *FrontendAttributes) GetMap() map[string]string

func (*FrontendAttributes) ProtoMessage

func (*FrontendAttributes) ProtoMessage()

func (*FrontendAttributes) ProtoReflect

func (x *FrontendAttributes) ProtoReflect() protoreflect.Message

func (*FrontendAttributes) Reset

func (x *FrontendAttributes) Reset()

func (*FrontendAttributes) String

func (x *FrontendAttributes) String() string

type GatherDimensionNumbers

type GatherDimensionNumbers struct {

	// "Window indices" is a term for a set of indices that index into the
	// interior of a dynamic-slice from the input tensor, the starting indices for
	// which were computed from output_gather_dims (see the operation semantic for
	// how this is defined) and the start_indices tensor.
	//
	// The window indices for a specific output index Out is computed as:
	//
	//	i = 0
	//	for (k : [0, input_tensor_shape.rank))
	//	  window_indices[k] =
	//	    if k in collapsed_slice_dims
	//	    then 0
	//	    else Out[offset_dims[i++]]
	OffsetDims         []int64 `protobuf:"varint,1,rep,packed,name=offset_dims,json=offsetDims,proto3" json:"offset_dims,omitempty"`
	CollapsedSliceDims []int64 `protobuf:"varint,2,rep,packed,name=collapsed_slice_dims,json=collapsedSliceDims,proto3" json:"collapsed_slice_dims,omitempty"`
	// This is interpreted as a map from i to start_index_map[i]. It
	// transforms the gather index looked up from the start_indices tensor into
	// the starting index in the input space.
	StartIndexMap []int64 `protobuf:"varint,3,rep,packed,name=start_index_map,json=startIndexMap,proto3" json:"start_index_map,omitempty"`
	// The dimension in the start_indices input that contains the starting
	// indices.
	IndexVectorDim int64 `protobuf:"varint,4,opt,name=index_vector_dim,json=indexVectorDim,proto3" json:"index_vector_dim,omitempty"`
	// contains filtered or unexported fields
}

Describes the dimension numbers for a gather operation.

See https://www.tensorflow.org/performance/xla/operation_semantics#gather for more details.

func (*GatherDimensionNumbers) Descriptor deprecated

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

Deprecated: Use GatherDimensionNumbers.ProtoReflect.Descriptor instead.

func (*GatherDimensionNumbers) GetCollapsedSliceDims

func (x *GatherDimensionNumbers) GetCollapsedSliceDims() []int64

func (*GatherDimensionNumbers) GetIndexVectorDim

func (x *GatherDimensionNumbers) GetIndexVectorDim() int64

func (*GatherDimensionNumbers) GetOffsetDims

func (x *GatherDimensionNumbers) GetOffsetDims() []int64

func (*GatherDimensionNumbers) GetStartIndexMap

func (x *GatherDimensionNumbers) GetStartIndexMap() []int64

func (*GatherDimensionNumbers) ProtoMessage

func (*GatherDimensionNumbers) ProtoMessage()

func (*GatherDimensionNumbers) ProtoReflect

func (x *GatherDimensionNumbers) ProtoReflect() protoreflect.Message

func (*GatherDimensionNumbers) Reset

func (x *GatherDimensionNumbers) Reset()

func (*GatherDimensionNumbers) String

func (x *GatherDimensionNumbers) String() string

type GlobalDataHandle

type GlobalDataHandle struct {
	Handle int64 `protobuf:"varint,1,opt,name=handle,proto3" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use GlobalDataHandle.ProtoReflect.Descriptor instead.

func (*GlobalDataHandle) GetHandle

func (x *GlobalDataHandle) GetHandle() int64

func (*GlobalDataHandle) ProtoMessage

func (*GlobalDataHandle) ProtoMessage()

func (*GlobalDataHandle) ProtoReflect

func (x *GlobalDataHandle) ProtoReflect() protoreflect.Message

func (*GlobalDataHandle) Reset

func (x *GlobalDataHandle) Reset()

func (*GlobalDataHandle) String

func (x *GlobalDataHandle) String() string

type LayoutProto

type LayoutProto struct {

	// The method used to store the data in memory. The format determines which of
	// the other fields are used by the layout.
	Format Format `protobuf:"varint,4,opt,name=format,proto3,enum=xla.Format" json:"format,omitempty"`
	// 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,proto3" json:"minor_to_major,omitempty"`
	// A sequence of tiles, starting from the tile that's applied first to the
	// Shape.
	//
	// TODO(b/119839262): implement tiling in each backend or add Unimplemented
	// error.
	Tiles []*TileProto `protobuf:"bytes,6,rep,name=tiles,proto3" json:"tiles,omitempty"`
	// Bit size of each element. If the size is bigger than what the element
	// type requires, the value is stored in the least significant
	// bits and the additional most significant bits are filled with 0's.
	//
	// TODO(b/119839262): implement in each backend or add Unimplemented error.
	ElementSizeInBits int64 `protobuf:"varint,7,opt,name=element_size_in_bits,json=elementSizeInBits,proto3" json:"element_size_in_bits,omitempty"`
	// Memory space where this array resides. The integer field is interpreted in
	// a backend-specific manner.
	MemorySpace int64 `protobuf:"varint,8,opt,name=memory_space,json=memorySpace,proto3" json:"memory_space,omitempty"`
	// contains filtered or unexported fields
}

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

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.

LINT.IfChange

func (*LayoutProto) Descriptor deprecated

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

Deprecated: Use LayoutProto.ProtoReflect.Descriptor instead.

func (*LayoutProto) GetElementSizeInBits

func (x *LayoutProto) GetElementSizeInBits() int64

func (*LayoutProto) GetFormat

func (x *LayoutProto) GetFormat() Format

func (*LayoutProto) GetMemorySpace

func (x *LayoutProto) GetMemorySpace() int64

func (*LayoutProto) GetMinorToMajor

func (x *LayoutProto) GetMinorToMajor() []int64

func (*LayoutProto) GetTiles

func (x *LayoutProto) GetTiles() []*TileProto

func (*LayoutProto) ProtoMessage

func (*LayoutProto) ProtoMessage()

func (*LayoutProto) ProtoReflect

func (x *LayoutProto) ProtoReflect() protoreflect.Message

func (*LayoutProto) Reset

func (x *LayoutProto) Reset()

func (*LayoutProto) String

func (x *LayoutProto) String() string

type LiteralProto

type LiteralProto struct {
	Shape         *ShapeProto     `protobuf:"bytes,1,opt,name=shape,proto3" json:"shape,omitempty"`
	Preds         []bool          `protobuf:"varint,2,rep,packed,name=preds,proto3" json:"preds,omitempty"`
	S8S           []byte          `protobuf:"bytes,15,opt,name=s8s,proto3" json:"s8s,omitempty"`
	U8S           []byte          `protobuf:"bytes,3,opt,name=u8s,proto3" json:"u8s,omitempty"`
	S32S          []int32         `protobuf:"varint,4,rep,packed,name=s32s,proto3" json:"s32s,omitempty"`
	S64S          []int64         `protobuf:"varint,5,rep,packed,name=s64s,proto3" json:"s64s,omitempty"`
	U32S          []uint32        `protobuf:"varint,6,rep,packed,name=u32s,proto3" json:"u32s,omitempty"`
	U64S          []uint64        `protobuf:"varint,7,rep,packed,name=u64s,proto3" json:"u64s,omitempty"`
	F32S          []float32       `protobuf:"fixed32,8,rep,packed,name=f32s,proto3" json:"f32s,omitempty"`
	F64S          []float64       `protobuf:"fixed64,9,rep,packed,name=f64s,proto3" json:"f64s,omitempty"`
	C64S          []float32       `protobuf:"fixed32,12,rep,packed,name=c64s,proto3" json:"c64s,omitempty"`   // Stored as interleaved real, imag floats.
	C128S         []float64       `protobuf:"fixed64,18,rep,packed,name=c128s,proto3" json:"c128s,omitempty"` // Stored as interleaved real, imag doubles.
	TupleLiterals []*LiteralProto `protobuf:"bytes,10,rep,name=tuple_literals,json=tupleLiterals,proto3" json:"tuple_literals,omitempty"`
	// The F16s, BF16s, U16s and S16s are encoded in little endian byte order
	F16S          []byte  `protobuf:"bytes,11,opt,name=f16s,proto3" json:"f16s,omitempty"`
	Bf16S         []byte  `protobuf:"bytes,13,opt,name=bf16s,proto3" json:"bf16s,omitempty"`
	U16S          []byte  `protobuf:"bytes,16,opt,name=u16s,proto3" json:"u16s,omitempty"`
	S16S          []byte  `protobuf:"bytes,17,opt,name=s16s,proto3" json:"s16s,omitempty"`
	SparseIndices []int64 `protobuf:"varint,14,rep,packed,name=sparse_indices,json=sparseIndices,proto3" json:"sparse_indices,omitempty"` // Next = 19
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use LiteralProto.ProtoReflect.Descriptor instead.

func (*LiteralProto) GetBf16S

func (x *LiteralProto) GetBf16S() []byte

func (*LiteralProto) GetC128S

func (x *LiteralProto) GetC128S() []float64

func (*LiteralProto) GetC64S

func (x *LiteralProto) GetC64S() []float32

func (*LiteralProto) GetF16S

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

func (*LiteralProto) GetF32S

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

func (*LiteralProto) GetF64S

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

func (*LiteralProto) GetPreds

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

func (*LiteralProto) GetS16S

func (x *LiteralProto) GetS16S() []byte

func (*LiteralProto) GetS32S

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

func (*LiteralProto) GetS64S

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

func (*LiteralProto) GetS8S

func (x *LiteralProto) GetS8S() []byte

func (*LiteralProto) GetShape

func (x *LiteralProto) GetShape() *ShapeProto

func (*LiteralProto) GetSparseIndices

func (x *LiteralProto) GetSparseIndices() []int64

func (*LiteralProto) GetTupleLiterals

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

func (*LiteralProto) GetU16S

func (x *LiteralProto) GetU16S() []byte

func (*LiteralProto) GetU32S

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

func (*LiteralProto) GetU64S

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

func (*LiteralProto) GetU8S

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

func (*LiteralProto) ProtoMessage

func (*LiteralProto) ProtoMessage()

func (*LiteralProto) ProtoReflect

func (x *LiteralProto) ProtoReflect() protoreflect.Message

func (*LiteralProto) Reset

func (x *LiteralProto) Reset()

func (*LiteralProto) String

func (x *LiteralProto) 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,proto3" 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,proto3" 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,proto3" json:"source_file,omitempty"`
	SourceLine int32  `protobuf:"varint,4,opt,name=source_line,json=sourceLine,proto3" json:"source_line,omitempty"`
	// Deprecated, use [ProfileInfo][profile_type] instead.
	//
	// Deprecated: Marked as deprecated in tensorflow/compiler/xla/xla_data.proto.
	ProfileType []ProfileType `protobuf:"varint,5,rep,packed,name=profile_type,json=profileType,proto3,enum=xla.ProfileType" json:"profile_type,omitempty"`
	// HloPassMetadata.pass_id of the pass that created this HLO instruction
	// object. Should never be copied between HLO instructions. Zero if unset and
	// -1 if the instruction was created before HLO passes began.
	CreationPassId int64 `protobuf:"varint,6,opt,name=creation_pass_id,json=creationPassId,proto3" json:"creation_pass_id,omitempty"`
	// HloPassMetadata.pass_id of the pass that created the logical functionality
	// that this HLO instruction represents. Should be copied between HLO
	// instructions that correspond across compilation passes. Zero if unset and
	// -1 if the instruction was created before HLO passes began.
	LogicalCreationPassId int64 `` /* 129-byte string literal not displayed */
	// The footprint of the generated code for the instruction.
	SizeOfGeneratedCodeInBytes int64 `` /* 148-byte string literal not displayed */
	// The size of the working set, i.e., the amount of memory, used by the
	// instruction in a compiler-managed fast device memory.
	SizeOfMemoryWorkingSetInBytes int64 `` /* 159-byte string literal not displayed */
	// Profile information for the Op.
	ProfileInfo *OpMetadata_ProfileInfo `protobuf:"bytes,10,opt,name=profile_info,json=profileInfo,proto3" json:"profile_info,omitempty"`
	// Information about the replaced operation. We store the HLO canonical text,
	// which contains canonicalized instruction name, operand shape, and full
	// bodies of the subcomputations besides the HLO itself. This is set
	// independently of other fields.
	ReplacedOp string `protobuf:"bytes,11,opt,name=replaced_op,json=replacedOp,proto3" json:"replaced_op,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use OpMetadata.ProtoReflect.Descriptor instead.

func (*OpMetadata) GetCreationPassId

func (x *OpMetadata) GetCreationPassId() int64

func (*OpMetadata) GetLogicalCreationPassId

func (x *OpMetadata) GetLogicalCreationPassId() int64

func (*OpMetadata) GetOpName

func (x *OpMetadata) GetOpName() string

func (*OpMetadata) GetOpType

func (x *OpMetadata) GetOpType() string

func (*OpMetadata) GetProfileInfo

func (x *OpMetadata) GetProfileInfo() *OpMetadata_ProfileInfo

func (*OpMetadata) GetProfileType deprecated

func (x *OpMetadata) GetProfileType() []ProfileType

Deprecated: Marked as deprecated in tensorflow/compiler/xla/xla_data.proto.

func (*OpMetadata) GetReplacedOp

func (x *OpMetadata) GetReplacedOp() string

func (*OpMetadata) GetSizeOfGeneratedCodeInBytes

func (x *OpMetadata) GetSizeOfGeneratedCodeInBytes() int64

func (*OpMetadata) GetSizeOfMemoryWorkingSetInBytes

func (x *OpMetadata) GetSizeOfMemoryWorkingSetInBytes() int64

func (*OpMetadata) GetSourceFile

func (x *OpMetadata) GetSourceFile() string

func (*OpMetadata) GetSourceLine

func (x *OpMetadata) GetSourceLine() int32

func (*OpMetadata) ProtoMessage

func (*OpMetadata) ProtoMessage()

func (*OpMetadata) ProtoReflect

func (x *OpMetadata) ProtoReflect() protoreflect.Message

func (*OpMetadata) Reset

func (x *OpMetadata) Reset()

func (*OpMetadata) String

func (x *OpMetadata) String() string

type OpMetadata_ProfileInfo

type OpMetadata_ProfileInfo struct {

	// The type of optimization profiles that this operation contains.
	ProfileType []ProfileType `protobuf:"varint,1,rep,packed,name=profile_type,json=profileType,proto3,enum=xla.ProfileType" json:"profile_type,omitempty"`
	// Speedup of tuned config compared to default config.
	// TODO(b/203817882) Set the relative_speedup.
	RelativeSpeedup float64 `protobuf:"fixed64,2,opt,name=relative_speedup,json=relativeSpeedup,proto3" json:"relative_speedup,omitempty"`
	// The source of the optimization profiles that this operation contains.
	ProfileSource ProfileSource `protobuf:"varint,3,opt,name=profile_source,json=profileSource,proto3,enum=xla.ProfileSource" json:"profile_source,omitempty"`
	// The compilation event that triggered the use of the profiles.
	CompilationEvent CompilationEvent `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

Information about the optimization profile that this operation contains.

func (*OpMetadata_ProfileInfo) Descriptor deprecated

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

Deprecated: Use OpMetadata_ProfileInfo.ProtoReflect.Descriptor instead.

func (*OpMetadata_ProfileInfo) GetCompilationEvent

func (x *OpMetadata_ProfileInfo) GetCompilationEvent() CompilationEvent

func (*OpMetadata_ProfileInfo) GetProfileSource

func (x *OpMetadata_ProfileInfo) GetProfileSource() ProfileSource

func (*OpMetadata_ProfileInfo) GetProfileType

func (x *OpMetadata_ProfileInfo) GetProfileType() []ProfileType

func (*OpMetadata_ProfileInfo) GetRelativeSpeedup

func (x *OpMetadata_ProfileInfo) GetRelativeSpeedup() float64

func (*OpMetadata_ProfileInfo) ProtoMessage

func (*OpMetadata_ProfileInfo) ProtoMessage()

func (*OpMetadata_ProfileInfo) ProtoReflect

func (x *OpMetadata_ProfileInfo) ProtoReflect() protoreflect.Message

func (*OpMetadata_ProfileInfo) Reset

func (x *OpMetadata_ProfileInfo) Reset()

func (*OpMetadata_ProfileInfo) String

func (x *OpMetadata_ProfileInfo) String() string

type OpSharding

type OpSharding struct {
	Type OpSharding_Type `protobuf:"varint,1,opt,name=type,proto3,enum=xla.OpSharding_Type" json:"type,omitempty"`
	// The shape of the sharded tile.
	TileShape *ShapeProto `protobuf:"bytes,2,opt,name=tile_shape,json=tileShape,proto3" json:"tile_shape,omitempty"`
	// The shape of the tile assignment tensor - this must be the same rank as
	// tile_shape and the product of its dimensions must equal
	// tile_assignment_devices.size().
	TileAssignmentDimensions []int64 `` /* 143-byte string literal not displayed */
	// Flattened list of device IDs. The order of flattening is the same as used
	// by IndexUtil::MultiToLinearIndex(tile_assignment_shape).
	TileAssignmentDevices []int64 `` /* 134-byte string literal not displayed */
	// If type == TUPLE, the sub-shardings, one per leaf node in the tuple shape,
	// in pre-order. The tuple shape could be nested; here we store just a
	// flattened list of all leaves in the tuple shape. Note that the tuple shape
	// is not stored here; shardings do not store the shapes to which they are
	// applied, this is inferred from the instruction this sharding gets attached
	// to.
	TupleShardings []*OpSharding `protobuf:"bytes,5,rep,name=tuple_shardings,json=tupleShardings,proto3" json:"tuple_shardings,omitempty"`
	// Only used for OTHER type. If true, data is sharded according to other
	// dimensions of tile_assignment(), but replicated across devices along the
	// last dimension. (Experimental)
	ReplicateOnLastTileDim bool `` /* 134-byte string literal not displayed */
	// This field is used to track the source of this sharding, usually derived
	// from instructions. Multple metadata may be populated if sharding is
	// combined with other shardings.  Metadata are to not be populated when
	// type == TUPLE and instead metadata should be set on individual tuple
	// elements.
	Metadata []*OpMetadata `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// This field is used to represented the sharding type of each subgroup.
	// For example, sharding={devices=[2,2,2,2]0,1,2,...,15 last_tile_dims={
	// replicate, manual, unreduced}} means that each of the last 3 dimensions
	// in [2,2,2,2] represents a subgrouping in replicate, manual,
	// unreduced sharding type respectively.
	LastTileDims []OpSharding_Type `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

LINT.IfChange

func (*OpSharding) Descriptor deprecated

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

Deprecated: Use OpSharding.ProtoReflect.Descriptor instead.

func (*OpSharding) GetLastTileDims

func (x *OpSharding) GetLastTileDims() []OpSharding_Type

func (*OpSharding) GetMetadata

func (x *OpSharding) GetMetadata() []*OpMetadata

func (*OpSharding) GetReplicateOnLastTileDim

func (x *OpSharding) GetReplicateOnLastTileDim() bool

func (*OpSharding) GetTileAssignmentDevices

func (x *OpSharding) GetTileAssignmentDevices() []int64

func (*OpSharding) GetTileAssignmentDimensions

func (x *OpSharding) GetTileAssignmentDimensions() []int64

func (*OpSharding) GetTileShape

func (x *OpSharding) GetTileShape() *ShapeProto

func (*OpSharding) GetTupleShardings

func (x *OpSharding) GetTupleShardings() []*OpSharding

func (*OpSharding) GetType

func (x *OpSharding) GetType() OpSharding_Type

func (*OpSharding) ProtoMessage

func (*OpSharding) ProtoMessage()

func (*OpSharding) ProtoReflect

func (x *OpSharding) ProtoReflect() protoreflect.Message

func (*OpSharding) Reset

func (x *OpSharding) Reset()

func (*OpSharding) String

func (x *OpSharding) String() string

type OpSharding_Type

type OpSharding_Type int32
const (
	// This sharding is replicated across all devices (implies maximal,
	// all other fields are unused).
	OpSharding_REPLICATED OpSharding_Type = 0
	// This sharding is maximal - one device runs the entire operation.
	OpSharding_MAXIMAL OpSharding_Type = 1
	// This sharding is a tuple - only the tuple_shardings field is valid.
	OpSharding_TUPLE OpSharding_Type = 2
	// None of the above; tile_shape and tile_assignment are both used.
	OpSharding_OTHER OpSharding_Type = 3
	// This op is manually sharded: the shapes are already partitioned and the
	// partitioner should not change this op.
	OpSharding_MANUAL OpSharding_Type = 4
)

func (OpSharding_Type) Descriptor

func (OpSharding_Type) Enum

func (x OpSharding_Type) Enum() *OpSharding_Type

func (OpSharding_Type) EnumDescriptor deprecated

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

Deprecated: Use OpSharding_Type.Descriptor instead.

func (OpSharding_Type) Number

func (OpSharding_Type) String

func (x OpSharding_Type) String() string

func (OpSharding_Type) Type

type PaddingConfig

type PaddingConfig struct {

	// The padding configuration for all dimensions.
	Dimensions []*PaddingConfig_PaddingConfigDimension `protobuf:"bytes,1,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use PaddingConfig.ProtoReflect.Descriptor instead.

func (*PaddingConfig) GetDimensions

func (*PaddingConfig) ProtoMessage

func (*PaddingConfig) ProtoMessage()

func (*PaddingConfig) ProtoReflect

func (x *PaddingConfig) ProtoReflect() protoreflect.Message

func (*PaddingConfig) Reset

func (x *PaddingConfig) Reset()

func (*PaddingConfig) String

func (x *PaddingConfig) String() string

type PaddingConfig_PaddingConfigDimension

type PaddingConfig_PaddingConfigDimension struct {

	// Padding amount on the low-end (next to the index 0). May be negative.
	EdgePaddingLow int64 `protobuf:"varint,1,opt,name=edge_padding_low,json=edgePaddingLow,proto3" json:"edge_padding_low,omitempty"`
	// Padding amount on the high-end (next to the highest index). May be
	// negative.
	EdgePaddingHigh int64 `protobuf:"varint,2,opt,name=edge_padding_high,json=edgePaddingHigh,proto3" json:"edge_padding_high,omitempty"`
	// Padding amount between the elements. May not be negative.
	InteriorPadding int64 `protobuf:"varint,3,opt,name=interior_padding,json=interiorPadding,proto3" json:"interior_padding,omitempty"`
	// contains filtered or unexported fields
}

Describes the padding configuration for a dimension.

func (*PaddingConfig_PaddingConfigDimension) Descriptor deprecated

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

Deprecated: Use PaddingConfig_PaddingConfigDimension.ProtoReflect.Descriptor instead.

func (*PaddingConfig_PaddingConfigDimension) GetEdgePaddingHigh

func (x *PaddingConfig_PaddingConfigDimension) GetEdgePaddingHigh() int64

func (*PaddingConfig_PaddingConfigDimension) GetEdgePaddingLow

func (x *PaddingConfig_PaddingConfigDimension) GetEdgePaddingLow() int64

func (*PaddingConfig_PaddingConfigDimension) GetInteriorPadding

func (x *PaddingConfig_PaddingConfigDimension) GetInteriorPadding() int64

func (*PaddingConfig_PaddingConfigDimension) ProtoMessage

func (*PaddingConfig_PaddingConfigDimension) ProtoMessage()

func (*PaddingConfig_PaddingConfigDimension) ProtoReflect

func (*PaddingConfig_PaddingConfigDimension) Reset

func (*PaddingConfig_PaddingConfigDimension) String

type PaddingType

type PaddingType int32
const (
	PaddingType_PADDING_INVALID PaddingType = 0
	PaddingType_PADDING_VALID   PaddingType = 1 // Only valid portion of the base are covered.
	PaddingType_PADDING_SAME    PaddingType = 2 // Extra is added to produce same output size as the input.
)

func (PaddingType) Descriptor

func (PaddingType) Enum

func (x PaddingType) Enum() *PaddingType

func (PaddingType) EnumDescriptor deprecated

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

Deprecated: Use PaddingType.Descriptor instead.

func (PaddingType) Number

func (x PaddingType) Number() protoreflect.EnumNumber

func (PaddingType) String

func (x PaddingType) String() string

func (PaddingType) Type

type ParameterReplication

type ParameterReplication struct {

	// A list of boolean values for the flattened leaf buffers. Each value
	// indicates whether the corresponding leaf buffer is replicated.
	//
	// If this field is empty, it means no buffer is replicated. Otherwise, the
	// number of elements in this field must match the number of leaf buffers in
	// the HLO instruction's shape.
	ReplicatedAtLeafBuffers []bool `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes whether all data-parallelism replicas will receive the same parameter data at each buffer.

func (*ParameterReplication) Descriptor deprecated

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

Deprecated: Use ParameterReplication.ProtoReflect.Descriptor instead.

func (*ParameterReplication) GetReplicatedAtLeafBuffers

func (x *ParameterReplication) GetReplicatedAtLeafBuffers() []bool

func (*ParameterReplication) ProtoMessage

func (*ParameterReplication) ProtoMessage()

func (*ParameterReplication) ProtoReflect

func (x *ParameterReplication) ProtoReflect() protoreflect.Message

func (*ParameterReplication) Reset

func (x *ParameterReplication) Reset()

func (*ParameterReplication) String

func (x *ParameterReplication) String() string

type PrecisionConfig

type PrecisionConfig struct {
	OperandPrecision []PrecisionConfig_Precision `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

Used to indicate the precision configuration. It has backend specific meaning.

func (*PrecisionConfig) Descriptor deprecated

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

Deprecated: Use PrecisionConfig.ProtoReflect.Descriptor instead.

func (*PrecisionConfig) GetOperandPrecision

func (x *PrecisionConfig) GetOperandPrecision() []PrecisionConfig_Precision

func (*PrecisionConfig) ProtoMessage

func (*PrecisionConfig) ProtoMessage()

func (*PrecisionConfig) ProtoReflect

func (x *PrecisionConfig) ProtoReflect() protoreflect.Message

func (*PrecisionConfig) Reset

func (x *PrecisionConfig) Reset()

func (*PrecisionConfig) String

func (x *PrecisionConfig) String() string

type PrecisionConfig_Precision

type PrecisionConfig_Precision int32
const (
	PrecisionConfig_DEFAULT PrecisionConfig_Precision = 0
	PrecisionConfig_HIGH    PrecisionConfig_Precision = 1
	PrecisionConfig_HIGHEST PrecisionConfig_Precision = 2
)

func (PrecisionConfig_Precision) Descriptor

func (PrecisionConfig_Precision) Enum

func (PrecisionConfig_Precision) EnumDescriptor deprecated

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

Deprecated: Use PrecisionConfig_Precision.Descriptor instead.

func (PrecisionConfig_Precision) Number

func (PrecisionConfig_Precision) String

func (x PrecisionConfig_Precision) String() string

func (PrecisionConfig_Precision) Type

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.

LINT.IfChange

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
	// Truncated 16 bit floating-point format. This is similar to IEEE's 16 bit
	// floating-point format, but uses 1 bit for the sign, 8 bits for the exponent
	// and 7 bits for the mantissa.
	PrimitiveType_BF16 PrimitiveType = 16
	PrimitiveType_F64  PrimitiveType = 12
	// Complex values of fixed width.
	PrimitiveType_C64  PrimitiveType = 15 // Paired F32 (real, imag), as in std::complex<float>.
	PrimitiveType_C128 PrimitiveType = 18 // Paired F64 (real, imag), as in std::complex<double>.
	// 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. Shapes of this primitive type will have empty dimensions and
	// tuple_shapes fields.
	//
	// (OPAQUE would be a better name for this identifier, but that conflicts with
	// a macro defined in windows.h.)
	PrimitiveType_OPAQUE_TYPE PrimitiveType = 14
	// A token type threaded between side-effecting operations. Shapes of this
	// primitive type will have empty dimensions and tuple_shapes fields.
	PrimitiveType_TOKEN PrimitiveType = 17
)

func (PrimitiveType) Descriptor

func (PrimitiveType) Enum

func (x PrimitiveType) Enum() *PrimitiveType

func (PrimitiveType) EnumDescriptor deprecated

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

Deprecated: Use PrimitiveType.Descriptor instead.

func (PrimitiveType) Number

func (PrimitiveType) String

func (x PrimitiveType) String() string

func (PrimitiveType) Type

type ProfileSource

type ProfileSource int32

The source of the optimization profile.

const (
	ProfileSource_PROFILE_SOURCE_UNKNOWN_SOURCE ProfileSource = 0
	ProfileSource_PROFILE_SOURCE_EMBEDDED       ProfileSource = 1
	ProfileSource_PROFILE_SOURCE_REMOTE         ProfileSource = 2
)

func (ProfileSource) Descriptor

func (ProfileSource) Enum

func (x ProfileSource) Enum() *ProfileSource

func (ProfileSource) EnumDescriptor deprecated

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

Deprecated: Use ProfileSource.Descriptor instead.

func (ProfileSource) Number

func (ProfileSource) String

func (x ProfileSource) String() string

func (ProfileSource) Type

type ProfileType

type ProfileType int32

The type optimization profiles in use for Op-level optimizations.

const (
	ProfileType_INVALID ProfileType = 0
	ProfileType_WINDOW  ProfileType = 1
	ProfileType_FLAG    ProfileType = 2
	ProfileType_INTEGER ProfileType = 3
)

func (ProfileType) Descriptor

func (ProfileType) Enum

func (x ProfileType) Enum() *ProfileType

func (ProfileType) EnumDescriptor deprecated

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

Deprecated: Use ProfileType.Descriptor instead.

func (ProfileType) Number

func (x ProfileType) Number() protoreflect.EnumNumber

func (ProfileType) String

func (x ProfileType) String() string

func (ProfileType) Type

type ProgramShapeProto

type ProgramShapeProto struct {
	Parameters     []*ShapeProto `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty"`
	Result         *ShapeProto   `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	ParameterNames []string      `protobuf:"bytes,3,rep,name=parameter_names,json=parameterNames,proto3" json:"parameter_names,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ProgramShapeProto) Descriptor deprecated

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

Deprecated: Use ProgramShapeProto.ProtoReflect.Descriptor instead.

func (*ProgramShapeProto) GetParameterNames

func (x *ProgramShapeProto) GetParameterNames() []string

func (*ProgramShapeProto) GetParameters

func (x *ProgramShapeProto) GetParameters() []*ShapeProto

func (*ProgramShapeProto) GetResult

func (x *ProgramShapeProto) GetResult() *ShapeProto

func (*ProgramShapeProto) ProtoMessage

func (*ProgramShapeProto) ProtoMessage()

func (*ProgramShapeProto) ProtoReflect

func (x *ProgramShapeProto) ProtoReflect() protoreflect.Message

func (*ProgramShapeProto) Reset

func (x *ProgramShapeProto) Reset()

func (*ProgramShapeProto) String

func (x *ProgramShapeProto) String() string

type RandomAlgorithm

type RandomAlgorithm int32
const (
	RandomAlgorithm_RNG_DEFAULT   RandomAlgorithm = 0 // Backend dependent default algorithm.
	RandomAlgorithm_RNG_THREE_FRY RandomAlgorithm = 1
	RandomAlgorithm_RNG_PHILOX    RandomAlgorithm = 2 // Next: 2
)

func (RandomAlgorithm) Descriptor

func (RandomAlgorithm) Enum

func (x RandomAlgorithm) Enum() *RandomAlgorithm

func (RandomAlgorithm) EnumDescriptor deprecated

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

Deprecated: Use RandomAlgorithm.Descriptor instead.

func (RandomAlgorithm) Number

func (RandomAlgorithm) String

func (x RandomAlgorithm) String() string

func (RandomAlgorithm) Type

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
)

func (RandomDistribution) Descriptor

func (RandomDistribution) Enum

func (RandomDistribution) EnumDescriptor deprecated

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

Deprecated: Use RandomDistribution.Descriptor instead.

func (RandomDistribution) Number

func (RandomDistribution) String

func (x RandomDistribution) String() string

func (RandomDistribution) Type

type ReplicaGroup

type ReplicaGroup struct {

	// The ids of the replicas that belongs to the same group. The ordering of the
	// ids matters in some ops (e.g., all-to-all).
	ReplicaIds []int64 `protobuf:"varint,1,rep,packed,name=replica_ids,json=replicaIds,proto3" json:"replica_ids,omitempty"`
	// contains filtered or unexported fields
}

Describes the replica groups in a cross replica op (e.g., all-reduce and all-to-all).

func (*ReplicaGroup) Descriptor deprecated

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

Deprecated: Use ReplicaGroup.ProtoReflect.Descriptor instead.

func (*ReplicaGroup) GetReplicaIds

func (x *ReplicaGroup) GetReplicaIds() []int64

func (*ReplicaGroup) ProtoMessage

func (*ReplicaGroup) ProtoMessage()

func (*ReplicaGroup) ProtoReflect

func (x *ReplicaGroup) ProtoReflect() protoreflect.Message

func (*ReplicaGroup) Reset

func (x *ReplicaGroup) Reset()

func (*ReplicaGroup) String

func (x *ReplicaGroup) String() string

type ScatterDimensionNumbers

type ScatterDimensionNumbers struct {

	// The set of dimensions in the updates shape that are window dimensions.
	UpdateWindowDims []int64 `protobuf:"varint,1,rep,packed,name=update_window_dims,json=updateWindowDims,proto3" json:"update_window_dims,omitempty"`
	// The set of window dimensions that must be inserted into the updates shape.
	InsertedWindowDims       []int64 `protobuf:"varint,2,rep,packed,name=inserted_window_dims,json=insertedWindowDims,proto3" json:"inserted_window_dims,omitempty"`
	ScatterDimsToOperandDims []int64 `` /* 147-byte string literal not displayed */
	IndexVectorDim           int64   `protobuf:"varint,4,opt,name=index_vector_dim,json=indexVectorDim,proto3" json:"index_vector_dim,omitempty"`
	// contains filtered or unexported fields
}

Describes the dimension numbers for a scatter operation.

All the fields are similar to the corresponding fields in GatherDimensionNumbers. Differences are noted below.

func (*ScatterDimensionNumbers) Descriptor deprecated

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

Deprecated: Use ScatterDimensionNumbers.ProtoReflect.Descriptor instead.

func (*ScatterDimensionNumbers) GetIndexVectorDim

func (x *ScatterDimensionNumbers) GetIndexVectorDim() int64

func (*ScatterDimensionNumbers) GetInsertedWindowDims

func (x *ScatterDimensionNumbers) GetInsertedWindowDims() []int64

func (*ScatterDimensionNumbers) GetScatterDimsToOperandDims

func (x *ScatterDimensionNumbers) GetScatterDimsToOperandDims() []int64

func (*ScatterDimensionNumbers) GetUpdateWindowDims

func (x *ScatterDimensionNumbers) GetUpdateWindowDims() []int64

func (*ScatterDimensionNumbers) ProtoMessage

func (*ScatterDimensionNumbers) ProtoMessage()

func (*ScatterDimensionNumbers) ProtoReflect

func (x *ScatterDimensionNumbers) ProtoReflect() protoreflect.Message

func (*ScatterDimensionNumbers) Reset

func (x *ScatterDimensionNumbers) Reset()

func (*ScatterDimensionNumbers) String

func (x *ScatterDimensionNumbers) String() string

type ShapeProto

type ShapeProto struct {

	// The element type for this shape.
	ElementType PrimitiveType `protobuf:"varint,2,opt,name=element_type,json=elementType,proto3,enum=xla.PrimitiveType" json:"element_type,omitempty"`
	// The size (number of elements) for each dimension, or an upper bound on the
	// size if the dimension is dynamic.  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.
	//
	// If the respective element in 'is_dimension_dynamic' is true then the value
	// in this field represents an upper bound on the size of the dimension.
	Dimensions []int64 `protobuf:"varint,3,rep,packed,name=dimensions,proto3" json:"dimensions,omitempty"`
	// For tuples only, the shapes of constituent shapes in the tuple sequence.
	TupleShapes []*ShapeProto `protobuf:"bytes,4,rep,name=tuple_shapes,json=tupleShapes,proto3" json:"tuple_shapes,omitempty"`
	// The layout used to back this shape.
	Layout *LayoutProto `protobuf:"bytes,5,opt,name=layout,proto3" json:"layout,omitempty"`
	// For arrays, this indicates whether or not each dimension is
	// dynamically-sized. The number of elements in this repeated field should be
	// zero (indicating that no dimensions are dynamic) or equal to the number of
	// elements in the 'dimensions' field.
	IsDynamicDimension []bool `protobuf:"varint,6,rep,packed,name=is_dynamic_dimension,json=isDynamicDimension,proto3" json:"is_dynamic_dimension,omitempty"`
	// contains filtered or unexported fields
}

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.

LINT.IfChange

func (*ShapeProto) Descriptor deprecated

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

Deprecated: Use ShapeProto.ProtoReflect.Descriptor instead.

func (*ShapeProto) GetDimensions

func (x *ShapeProto) GetDimensions() []int64

func (*ShapeProto) GetElementType

func (x *ShapeProto) GetElementType() PrimitiveType

func (*ShapeProto) GetIsDynamicDimension

func (x *ShapeProto) GetIsDynamicDimension() []bool

func (*ShapeProto) GetLayout

func (x *ShapeProto) GetLayout() *LayoutProto

func (*ShapeProto) GetTupleShapes

func (x *ShapeProto) GetTupleShapes() []*ShapeProto

func (*ShapeProto) ProtoMessage

func (*ShapeProto) ProtoMessage()

func (*ShapeProto) ProtoReflect

func (x *ShapeProto) ProtoReflect() protoreflect.Message

func (*ShapeProto) Reset

func (x *ShapeProto) Reset()

func (*ShapeProto) String

func (x *ShapeProto) String() string

type SourceTarget

type SourceTarget struct {
	Source int64 `protobuf:"varint,1,opt,name=source,proto3" json:"source,omitempty"`
	Target int64 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

Describes the source target pair in the collective permute op.

func (*SourceTarget) Descriptor deprecated

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

Deprecated: Use SourceTarget.ProtoReflect.Descriptor instead.

func (*SourceTarget) GetSource

func (x *SourceTarget) GetSource() int64

func (*SourceTarget) GetTarget

func (x *SourceTarget) GetTarget() int64

func (*SourceTarget) ProtoMessage

func (*SourceTarget) ProtoMessage()

func (*SourceTarget) ProtoReflect

func (x *SourceTarget) ProtoReflect() protoreflect.Message

func (*SourceTarget) Reset

func (x *SourceTarget) Reset()

func (*SourceTarget) String

func (x *SourceTarget) String() string

type TileProto

type TileProto struct {

	// Number of elements in each dimension of the tile. It's ordered from the
	// most major dimension of the tile to the most minor dimension of the tile.
	// The dimensions correspond to a suffix of the dimensions of the shape being
	// tiled.
	Dimensions []int64 `protobuf:"varint,1,rep,packed,name=dimensions,proto3" json:"dimensions,omitempty"`
	// contains filtered or unexported fields
}

Describes a tile used in tiling-based layout. Refer to g3doc/third_party/tensorflow/compiler/xla/g3doc/tiled_layout.md for details about tiling-based layout.

func (*TileProto) Descriptor deprecated

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

Deprecated: Use TileProto.ProtoReflect.Descriptor instead.

func (*TileProto) GetDimensions

func (x *TileProto) GetDimensions() []int64

func (*TileProto) ProtoMessage

func (*TileProto) ProtoMessage()

func (*TileProto) ProtoReflect

func (x *TileProto) ProtoReflect() protoreflect.Message

func (*TileProto) Reset

func (x *TileProto) Reset()

func (*TileProto) String

func (x *TileProto) String() string

type TriangularSolveOptions

type TriangularSolveOptions struct {

	// If true, solves ax = b. If false, solves xa = b.
	LeftSide bool `protobuf:"varint,1,opt,name=left_side,json=leftSide,proto3" json:"left_side,omitempty"`
	// If true, 'a' is lower triangular. If false, 'a' is upper triangular.
	Lower bool `protobuf:"varint,2,opt,name=lower,proto3" json:"lower,omitempty"`
	// If true, the diagonal elements of 'a' are assumed to be 1 and not accessed.
	UnitDiagonal bool                             `protobuf:"varint,3,opt,name=unit_diagonal,json=unitDiagonal,proto3" json:"unit_diagonal,omitempty"`
	TransposeA   TriangularSolveOptions_Transpose `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TriangularSolveOptions) Descriptor deprecated

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

Deprecated: Use TriangularSolveOptions.ProtoReflect.Descriptor instead.

func (*TriangularSolveOptions) GetLeftSide

func (x *TriangularSolveOptions) GetLeftSide() bool

func (*TriangularSolveOptions) GetLower

func (x *TriangularSolveOptions) GetLower() bool

func (*TriangularSolveOptions) GetTransposeA

func (*TriangularSolveOptions) GetUnitDiagonal

func (x *TriangularSolveOptions) GetUnitDiagonal() bool

func (*TriangularSolveOptions) ProtoMessage

func (*TriangularSolveOptions) ProtoMessage()

func (*TriangularSolveOptions) ProtoReflect

func (x *TriangularSolveOptions) ProtoReflect() protoreflect.Message

func (*TriangularSolveOptions) Reset

func (x *TriangularSolveOptions) Reset()

func (*TriangularSolveOptions) String

func (x *TriangularSolveOptions) String() string

type TriangularSolveOptions_Transpose

type TriangularSolveOptions_Transpose int32

Should we transpose or use the adjoint of 'a'?

const (
	TriangularSolveOptions_TRANSPOSE_INVALID TriangularSolveOptions_Transpose = 0
	TriangularSolveOptions_NO_TRANSPOSE      TriangularSolveOptions_Transpose = 1 // Don't transpose 'a'.
	TriangularSolveOptions_TRANSPOSE         TriangularSolveOptions_Transpose = 2 // Transpose 'a'.
	TriangularSolveOptions_ADJOINT           TriangularSolveOptions_Transpose = 3 // Complex conjugate and transpose 'a'.
)

func (TriangularSolveOptions_Transpose) Descriptor

func (TriangularSolveOptions_Transpose) Enum

func (TriangularSolveOptions_Transpose) EnumDescriptor deprecated

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

Deprecated: Use TriangularSolveOptions_Transpose.Descriptor instead.

func (TriangularSolveOptions_Transpose) Number

func (TriangularSolveOptions_Transpose) String

func (TriangularSolveOptions_Transpose) Type

type WhileLoopBackendConfig

type WhileLoopBackendConfig struct {

	// This indirection lets us distinguish between known-trip-count == 0 and
	// unknown-trip-count.
	KnownTripCount *WhileLoopBackendConfig_KnownTripCount `protobuf:"bytes,1,opt,name=known_trip_count,json=knownTripCount,proto3" json:"known_trip_count,omitempty"`
	// contains filtered or unexported fields
}

A backend-config for kWhile loops that stores the loop's trip count, if it is known.

This is useful for backends that can implement a `for i in 0..N` loop more efficiently than a `while` loop. For example, on GPUs, we can implement a `for i in 0..N` loop by enqueueing the kernels for the loop body N times, whereas implementing a `while` loop requires a host-device sync on each iteration.

func (*WhileLoopBackendConfig) Descriptor deprecated

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

Deprecated: Use WhileLoopBackendConfig.ProtoReflect.Descriptor instead.

func (*WhileLoopBackendConfig) GetKnownTripCount

func (*WhileLoopBackendConfig) ProtoMessage

func (*WhileLoopBackendConfig) ProtoMessage()

func (*WhileLoopBackendConfig) ProtoReflect

func (x *WhileLoopBackendConfig) ProtoReflect() protoreflect.Message

func (*WhileLoopBackendConfig) Reset

func (x *WhileLoopBackendConfig) Reset()

func (*WhileLoopBackendConfig) String

func (x *WhileLoopBackendConfig) String() string

type WhileLoopBackendConfig_KnownTripCount

type WhileLoopBackendConfig_KnownTripCount struct {
	N int64 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"`
	// contains filtered or unexported fields
}

func (*WhileLoopBackendConfig_KnownTripCount) Descriptor deprecated

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

Deprecated: Use WhileLoopBackendConfig_KnownTripCount.ProtoReflect.Descriptor instead.

func (*WhileLoopBackendConfig_KnownTripCount) GetN

func (*WhileLoopBackendConfig_KnownTripCount) ProtoMessage

func (*WhileLoopBackendConfig_KnownTripCount) ProtoMessage()

func (*WhileLoopBackendConfig_KnownTripCount) ProtoReflect

func (*WhileLoopBackendConfig_KnownTripCount) Reset

func (*WhileLoopBackendConfig_KnownTripCount) String

type Window

type Window struct {
	Dimensions []*WindowDimension `protobuf:"bytes,1,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use Window.ProtoReflect.Descriptor instead.

func (*Window) GetDimensions

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

func (*Window) ProtoMessage

func (*Window) ProtoMessage()

func (*Window) ProtoReflect

func (x *Window) ProtoReflect() protoreflect.Message

func (*Window) Reset

func (x *Window) Reset()

func (*Window) String

func (x *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,proto3" 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,proto3" json:"stride,omitempty"`
	// If positive, means the amount of padding 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 padding
	// values to pad on the left, given that indices increase when going right.
	// The actual padding value depends upon the context. Convolution pads with
	// zeros. ReduceWindow and SelectAndScatter pads with the reduce function's
	// init value.
	PaddingLow int64 `protobuf:"varint,3,opt,name=padding_low,json=paddingLow,proto3" 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 values to
	// pad on the right, given that indices increase when going right.
	PaddingHigh int64 `protobuf:"varint,4,opt,name=padding_high,json=paddingHigh,proto3" 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. This value may not be less
	// than 1. See documentation for convolution.
	WindowDilation int64 `protobuf:"varint,5,opt,name=window_dilation,json=windowDilation,proto3" 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. This value may not be less than 1.
	// See documentation for convolution.
	BaseDilation int64 `protobuf:"varint,6,opt,name=base_dilation,json=baseDilation,proto3" json:"base_dilation,omitempty"`
	// Window reversal means that this dimension was logically reversed before the
	// operation.
	WindowReversal bool `protobuf:"varint,7,opt,name=window_reversal,json=windowReversal,proto3" json:"window_reversal,omitempty"`
	// contains filtered or unexported fields
}

func (*WindowDimension) Descriptor deprecated

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

Deprecated: Use WindowDimension.ProtoReflect.Descriptor instead.

func (*WindowDimension) GetBaseDilation

func (x *WindowDimension) GetBaseDilation() int64

func (*WindowDimension) GetPaddingHigh

func (x *WindowDimension) GetPaddingHigh() int64

func (*WindowDimension) GetPaddingLow

func (x *WindowDimension) GetPaddingLow() int64

func (*WindowDimension) GetSize

func (x *WindowDimension) GetSize() int64

func (*WindowDimension) GetStride

func (x *WindowDimension) GetStride() int64

func (*WindowDimension) GetWindowDilation

func (x *WindowDimension) GetWindowDilation() int64

func (*WindowDimension) GetWindowReversal

func (x *WindowDimension) GetWindowReversal() bool

func (*WindowDimension) ProtoMessage

func (*WindowDimension) ProtoMessage()

func (*WindowDimension) ProtoReflect

func (x *WindowDimension) ProtoReflect() protoreflect.Message

func (*WindowDimension) Reset

func (x *WindowDimension) Reset()

func (*WindowDimension) String

func (x *WindowDimension) String() string

Jump to

Keyboard shortcuts

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