Documentation ¶
Index ¶
- Variables
- type AvailableDeviceInfo
- func (*AvailableDeviceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AvailableDeviceInfo) GetMemoryLimit() int64
- func (x *AvailableDeviceInfo) GetName() string
- func (x *AvailableDeviceInfo) GetPhysicalDescription() string
- func (x *AvailableDeviceInfo) GetType() string
- func (*AvailableDeviceInfo) ProtoMessage()
- func (x *AvailableDeviceInfo) ProtoReflect() protoreflect.Message
- func (x *AvailableDeviceInfo) Reset()
- func (x *AvailableDeviceInfo) String() string
- type BenchmarkEntries
- func (*BenchmarkEntries) Descriptor() ([]byte, []int)deprecated
- func (x *BenchmarkEntries) GetEntry() []*BenchmarkEntry
- func (*BenchmarkEntries) ProtoMessage()
- func (x *BenchmarkEntries) ProtoReflect() protoreflect.Message
- func (x *BenchmarkEntries) Reset()
- func (x *BenchmarkEntries) String() string
- type BenchmarkEntry
- func (*BenchmarkEntry) Descriptor() ([]byte, []int)deprecated
- func (x *BenchmarkEntry) GetCpuTime() float64
- func (x *BenchmarkEntry) GetExtras() map[string]*EntryValue
- func (x *BenchmarkEntry) GetIters() int64
- func (x *BenchmarkEntry) GetMetrics() []*MetricEntry
- func (x *BenchmarkEntry) GetName() string
- func (x *BenchmarkEntry) GetThroughput() float64
- func (x *BenchmarkEntry) GetWallTime() float64
- func (*BenchmarkEntry) ProtoMessage()
- func (x *BenchmarkEntry) ProtoReflect() protoreflect.Message
- func (x *BenchmarkEntry) Reset()
- func (x *BenchmarkEntry) String() string
- type BinSummary
- func (*BinSummary) Descriptor() ([]byte, []int)deprecated
- func (x *BinSummary) GetBin() int32
- func (x *BinSummary) GetTotalBytesInBin() int64
- func (x *BinSummary) GetTotalBytesInUse() int64
- func (x *BinSummary) GetTotalChunksInBin() int64
- func (x *BinSummary) GetTotalChunksInUse() int64
- func (*BinSummary) ProtoMessage()
- func (x *BinSummary) ProtoReflect() protoreflect.Message
- func (x *BinSummary) Reset()
- func (x *BinSummary) String() string
- type BuildConfiguration
- func (*BuildConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *BuildConfiguration) GetCcFlags() []string
- func (x *BuildConfiguration) GetMode() string
- func (x *BuildConfiguration) GetOpts() []string
- func (*BuildConfiguration) ProtoMessage()
- func (x *BuildConfiguration) ProtoReflect() protoreflect.Message
- func (x *BuildConfiguration) Reset()
- func (x *BuildConfiguration) String() string
- type CPUInfo
- func (*CPUInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CPUInfo) GetCacheSize() map[string]int64
- func (x *CPUInfo) GetCpuGovernor() string
- func (x *CPUInfo) GetCpuInfo() string
- func (x *CPUInfo) GetMhzPerCpu() float64
- func (x *CPUInfo) GetNumCores() int64
- func (x *CPUInfo) GetNumCoresAllowed() int64
- func (*CPUInfo) ProtoMessage()
- func (x *CPUInfo) ProtoReflect() protoreflect.Message
- func (x *CPUInfo) Reset()
- func (x *CPUInfo) String() string
- type Code
- type CommitId
- func (*CommitId) Descriptor() ([]byte, []int)deprecated
- func (x *CommitId) GetChangelist() int64
- func (x *CommitId) GetHash() string
- func (m *CommitId) GetKind() isCommitId_Kind
- func (x *CommitId) GetPendingChangelist() int64
- func (x *CommitId) GetSnapshot() string
- func (*CommitId) ProtoMessage()
- func (x *CommitId) ProtoReflect() protoreflect.Message
- func (x *CommitId) Reset()
- func (x *CommitId) String() string
- type CommitId_Changelist
- type CommitId_Hash
- type EntryValue
- func (*EntryValue) Descriptor() ([]byte, []int)deprecated
- func (x *EntryValue) GetDoubleValue() float64
- func (m *EntryValue) GetKind() isEntryValue_Kind
- func (x *EntryValue) GetStringValue() string
- func (*EntryValue) ProtoMessage()
- func (x *EntryValue) ProtoReflect() protoreflect.Message
- func (x *EntryValue) Reset()
- func (x *EntryValue) String() string
- type EntryValue_DoubleValue
- type EntryValue_StringValue
- type GPUInfo
- func (*GPUInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GPUInfo) GetBusId() string
- func (x *GPUInfo) GetModel() string
- func (x *GPUInfo) GetUuid() string
- func (*GPUInfo) ProtoMessage()
- func (x *GPUInfo) ProtoReflect() protoreflect.Message
- func (x *GPUInfo) Reset()
- func (x *GPUInfo) String() string
- type GrpcPayloadContainer
- func (*GrpcPayloadContainer) Descriptor() ([]byte, []int)deprecated
- func (x *GrpcPayloadContainer) GetPayloads() map[string][]byte
- func (*GrpcPayloadContainer) ProtoMessage()
- func (x *GrpcPayloadContainer) ProtoReflect() protoreflect.Message
- func (x *GrpcPayloadContainer) Reset()
- func (x *GrpcPayloadContainer) String() string
- type GrpcPayloadsLost
- type HistogramProto
- func (*HistogramProto) Descriptor() ([]byte, []int)deprecated
- func (x *HistogramProto) GetBucket() []float64
- func (x *HistogramProto) GetBucketLimit() []float64
- func (x *HistogramProto) GetMax() float64
- func (x *HistogramProto) GetMin() float64
- func (x *HistogramProto) GetNum() float64
- func (x *HistogramProto) GetSum() float64
- func (x *HistogramProto) GetSumSquares() float64
- func (*HistogramProto) ProtoMessage()
- func (x *HistogramProto) ProtoReflect() protoreflect.Message
- func (x *HistogramProto) Reset()
- func (x *HistogramProto) String() string
- type MachineConfiguration
- func (*MachineConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *MachineConfiguration) GetAvailableDeviceInfo() []*AvailableDeviceInfo
- func (x *MachineConfiguration) GetCpuInfo() *CPUInfo
- func (x *MachineConfiguration) GetDeviceInfo() []*anypb.Any
- func (x *MachineConfiguration) GetHostname() string
- func (x *MachineConfiguration) GetMemoryInfo() *MemoryInfo
- func (x *MachineConfiguration) GetPlatformInfo() *PlatformInfo
- func (x *MachineConfiguration) GetSerialIdentifier() string
- func (*MachineConfiguration) ProtoMessage()
- func (x *MachineConfiguration) ProtoReflect() protoreflect.Message
- func (x *MachineConfiguration) Reset()
- func (x *MachineConfiguration) String() string
- type MemAllocatorStats
- func (*MemAllocatorStats) Descriptor() ([]byte, []int)deprecated
- func (x *MemAllocatorStats) GetBytesInUse() int64
- func (x *MemAllocatorStats) GetFragmentationMetric() float32
- func (x *MemAllocatorStats) GetLargestAllocSize() int64
- func (x *MemAllocatorStats) GetNumAllocs() int64
- func (x *MemAllocatorStats) GetPeakBytesInUse() int64
- func (*MemAllocatorStats) ProtoMessage()
- func (x *MemAllocatorStats) ProtoReflect() protoreflect.Message
- func (x *MemAllocatorStats) Reset()
- func (x *MemAllocatorStats) String() string
- type MemChunk
- func (*MemChunk) Descriptor() ([]byte, []int)deprecated
- func (x *MemChunk) GetActionCount() uint64
- func (x *MemChunk) GetAddress() uint64
- func (x *MemChunk) GetBin() int32
- func (x *MemChunk) GetFreedAtCount() uint64
- func (x *MemChunk) GetInUse() bool
- func (x *MemChunk) GetOpName() string
- func (x *MemChunk) GetRequestedSize() int64
- func (x *MemChunk) GetSize() int64
- func (x *MemChunk) GetStepId() uint64
- func (*MemChunk) ProtoMessage()
- func (x *MemChunk) ProtoReflect() protoreflect.Message
- func (x *MemChunk) Reset()
- func (x *MemChunk) String() string
- type MemoryDump
- func (*MemoryDump) Descriptor() ([]byte, []int)deprecated
- func (x *MemoryDump) GetAllocatorName() string
- func (x *MemoryDump) GetBinSummary() []*BinSummary
- func (x *MemoryDump) GetChunk() []*MemChunk
- func (x *MemoryDump) GetSnapShot() []*SnapShot
- func (x *MemoryDump) GetStats() *MemAllocatorStats
- func (*MemoryDump) ProtoMessage()
- func (x *MemoryDump) ProtoReflect() protoreflect.Message
- func (x *MemoryDump) Reset()
- func (x *MemoryDump) String() string
- type MemoryInfo
- type MetricEntry
- func (*MetricEntry) Descriptor() ([]byte, []int)deprecated
- func (x *MetricEntry) GetMaxValue() *wrapperspb.DoubleValue
- func (x *MetricEntry) GetMinValue() *wrapperspb.DoubleValue
- func (x *MetricEntry) GetName() string
- func (x *MetricEntry) GetValue() float64
- func (*MetricEntry) ProtoMessage()
- func (x *MetricEntry) ProtoReflect() protoreflect.Message
- func (x *MetricEntry) Reset()
- func (x *MetricEntry) String() string
- type PlatformInfo
- func (*PlatformInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PlatformInfo) GetBits() string
- func (x *PlatformInfo) GetLinkage() string
- func (x *PlatformInfo) GetMachine() string
- func (x *PlatformInfo) GetRelease() string
- func (x *PlatformInfo) GetSystem() string
- func (x *PlatformInfo) GetVersion() string
- func (*PlatformInfo) ProtoMessage()
- func (x *PlatformInfo) ProtoReflect() protoreflect.Message
- func (x *PlatformInfo) Reset()
- func (x *PlatformInfo) String() string
- type RPCOptions
- func (*RPCOptions) Descriptor() ([]byte, []int)deprecated
- func (x *RPCOptions) GetCacheRpcResponse() bool
- func (x *RPCOptions) GetCompressionAlgorithm() string
- func (x *RPCOptions) GetCompressionLevel() int32
- func (x *RPCOptions) GetDisableSessionConnectionSharing() bool
- func (x *RPCOptions) GetNumChannelsPerTarget() int32
- func (x *RPCOptions) GetUseRpcForInprocessMaster() bool
- func (*RPCOptions) ProtoMessage()
- func (x *RPCOptions) ProtoReflect() protoreflect.Message
- func (x *RPCOptions) Reset()
- func (x *RPCOptions) String() string
- type RunConfiguration
- func (*RunConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *RunConfiguration) GetArgument() []string
- func (x *RunConfiguration) GetEnvVars() map[string]string
- func (*RunConfiguration) ProtoMessage()
- func (x *RunConfiguration) ProtoReflect() protoreflect.Message
- func (x *RunConfiguration) Reset()
- func (x *RunConfiguration) String() string
- type SnapShot
- type StatusProto
- type TestResults
- func (*TestResults) Descriptor() ([]byte, []int)deprecated
- func (x *TestResults) GetBenchmarkType() TestResults_BenchmarkType
- func (x *TestResults) GetBuildConfiguration() *BuildConfiguration
- func (x *TestResults) GetCommitId() *CommitId
- func (x *TestResults) GetEntries() *BenchmarkEntries
- func (x *TestResults) GetMachineConfiguration() *MachineConfiguration
- func (x *TestResults) GetName() string
- func (x *TestResults) GetRunConfiguration() *RunConfiguration
- func (x *TestResults) GetRunMode() string
- func (x *TestResults) GetRunTime() float64
- func (x *TestResults) GetStartTime() int64
- func (x *TestResults) GetTarget() string
- func (x *TestResults) GetTfVersion() string
- func (*TestResults) ProtoMessage()
- func (x *TestResults) ProtoReflect() protoreflect.Message
- func (x *TestResults) Reset()
- func (x *TestResults) String() string
- type TestResults_BenchmarkType
- func (TestResults_BenchmarkType) Descriptor() protoreflect.EnumDescriptor
- func (x TestResults_BenchmarkType) Enum() *TestResults_BenchmarkType
- func (TestResults_BenchmarkType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestResults_BenchmarkType) Number() protoreflect.EnumNumber
- func (x TestResults_BenchmarkType) String() string
- func (TestResults_BenchmarkType) Type() protoreflect.EnumType
- type WorkerPossiblyRestarted
Constants ¶
This section is empty.
Variables ¶
var ( Code_name = map[int32]string{ 0: "OK", 1: "CANCELLED", 2: "UNKNOWN", 3: "INVALID_ARGUMENT", 4: "DEADLINE_EXCEEDED", 5: "NOT_FOUND", 6: "ALREADY_EXISTS", 7: "PERMISSION_DENIED", 16: "UNAUTHENTICATED", 8: "RESOURCE_EXHAUSTED", 9: "FAILED_PRECONDITION", 10: "ABORTED", 11: "OUT_OF_RANGE", 12: "UNIMPLEMENTED", 13: "INTERNAL", 14: "UNAVAILABLE", 15: "DATA_LOSS", 20: "DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_", } Code_value = map[string]int32{ "OK": 0, "CANCELLED": 1, "UNKNOWN": 2, "INVALID_ARGUMENT": 3, "DEADLINE_EXCEEDED": 4, "NOT_FOUND": 5, "ALREADY_EXISTS": 6, "PERMISSION_DENIED": 7, "UNAUTHENTICATED": 16, "RESOURCE_EXHAUSTED": 8, "FAILED_PRECONDITION": 9, "ABORTED": 10, "OUT_OF_RANGE": 11, "UNIMPLEMENTED": 12, "INTERNAL": 13, "UNAVAILABLE": 14, "DATA_LOSS": 15, "DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_": 20, } )
Enum value maps for Code.
var ( TestResults_BenchmarkType_name = map[int32]string{ 0: "UNKNOWN", 1: "CPP_MICROBENCHMARK", 2: "PYTHON_BENCHMARK", 3: "ANDROID_BENCHMARK", 4: "EDGE_BENCHMARK", 5: "IOS_BENCHMARK", } TestResults_BenchmarkType_value = map[string]int32{ "UNKNOWN": 0, "CPP_MICROBENCHMARK": 1, "PYTHON_BENCHMARK": 2, "ANDROID_BENCHMARK": 3, "EDGE_BENCHMARK": 4, "IOS_BENCHMARK": 5, } )
Enum value maps for TestResults_BenchmarkType.
var File_tsl_protobuf_bfc_memory_map_proto protoreflect.FileDescriptor
var File_tsl_protobuf_distributed_runtime_payloads_proto protoreflect.FileDescriptor
var File_tsl_protobuf_error_codes_proto protoreflect.FileDescriptor
var File_tsl_protobuf_histogram_proto protoreflect.FileDescriptor
var File_tsl_protobuf_rpc_options_proto protoreflect.FileDescriptor
var File_tsl_protobuf_status_proto protoreflect.FileDescriptor
var File_tsl_protobuf_test_log_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AvailableDeviceInfo ¶ added in v0.4.0
type AvailableDeviceInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Device name. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // Device type, e.g. 'CPU' or 'GPU'. MemoryLimit int64 `protobuf:"varint,3,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"` // Memory capacity in bytes. PhysicalDescription string `protobuf:"bytes,4,opt,name=physical_description,json=physicalDescription,proto3" json:"physical_description,omitempty"` // The physical description of this device. // contains filtered or unexported fields }
func (*AvailableDeviceInfo) Descriptor
deprecated
added in
v0.4.0
func (*AvailableDeviceInfo) Descriptor() ([]byte, []int)
Deprecated: Use AvailableDeviceInfo.ProtoReflect.Descriptor instead.
func (*AvailableDeviceInfo) GetMemoryLimit ¶ added in v0.4.0
func (x *AvailableDeviceInfo) GetMemoryLimit() int64
func (*AvailableDeviceInfo) GetName ¶ added in v0.4.0
func (x *AvailableDeviceInfo) GetName() string
func (*AvailableDeviceInfo) GetPhysicalDescription ¶ added in v0.4.0
func (x *AvailableDeviceInfo) GetPhysicalDescription() string
func (*AvailableDeviceInfo) GetType ¶ added in v0.4.0
func (x *AvailableDeviceInfo) GetType() string
func (*AvailableDeviceInfo) ProtoMessage ¶ added in v0.4.0
func (*AvailableDeviceInfo) ProtoMessage()
func (*AvailableDeviceInfo) ProtoReflect ¶ added in v0.4.0
func (x *AvailableDeviceInfo) ProtoReflect() protoreflect.Message
func (*AvailableDeviceInfo) Reset ¶ added in v0.4.0
func (x *AvailableDeviceInfo) Reset()
func (*AvailableDeviceInfo) String ¶ added in v0.4.0
func (x *AvailableDeviceInfo) String() string
type BenchmarkEntries ¶ added in v0.4.0
type BenchmarkEntries struct { Entry []*BenchmarkEntry `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` // contains filtered or unexported fields }
func (*BenchmarkEntries) Descriptor
deprecated
added in
v0.4.0
func (*BenchmarkEntries) Descriptor() ([]byte, []int)
Deprecated: Use BenchmarkEntries.ProtoReflect.Descriptor instead.
func (*BenchmarkEntries) GetEntry ¶ added in v0.4.0
func (x *BenchmarkEntries) GetEntry() []*BenchmarkEntry
func (*BenchmarkEntries) ProtoMessage ¶ added in v0.4.0
func (*BenchmarkEntries) ProtoMessage()
func (*BenchmarkEntries) ProtoReflect ¶ added in v0.4.0
func (x *BenchmarkEntries) ProtoReflect() protoreflect.Message
func (*BenchmarkEntries) Reset ¶ added in v0.4.0
func (x *BenchmarkEntries) Reset()
func (*BenchmarkEntries) String ¶ added in v0.4.0
func (x *BenchmarkEntries) String() string
type BenchmarkEntry ¶ added in v0.4.0
type BenchmarkEntry struct { // The name of the specific benchmark or test // (e.g. BM_AdjustContrast_gpu_B_W_H) Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // If a benchmark, how many iterations it was run for Iters int64 `protobuf:"varint,2,opt,name=iters,proto3" json:"iters,omitempty"` // Total cpu time used for all iterations (in seconds) CpuTime float64 `protobuf:"fixed64,3,opt,name=cpu_time,json=cpuTime,proto3" json:"cpu_time,omitempty"` // Total wall time used for all iterations (in seconds) WallTime float64 `protobuf:"fixed64,4,opt,name=wall_time,json=wallTime,proto3" json:"wall_time,omitempty"` // Throughput (in MB/s) Throughput float64 `protobuf:"fixed64,5,opt,name=throughput,proto3" json:"throughput,omitempty"` // Generic map from result key to value. Extras map[string]*EntryValue `` /* 153-byte string literal not displayed */ // Metric name, value and expected range. This can include accuracy metrics // typically used to determine whether the accuracy test has passed Metrics []*MetricEntry `protobuf:"bytes,7,rep,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
Each unit test or benchmark in a test or benchmark run provides some set of information. Here we provide some reasonable keys one would expect to see, with optional key/value pairs for things we haven't considered.
This BenchmarkEntry should be emitted by each unit test or benchmark reporter.
func (*BenchmarkEntry) Descriptor
deprecated
added in
v0.4.0
func (*BenchmarkEntry) Descriptor() ([]byte, []int)
Deprecated: Use BenchmarkEntry.ProtoReflect.Descriptor instead.
func (*BenchmarkEntry) GetCpuTime ¶ added in v0.4.0
func (x *BenchmarkEntry) GetCpuTime() float64
func (*BenchmarkEntry) GetExtras ¶ added in v0.4.0
func (x *BenchmarkEntry) GetExtras() map[string]*EntryValue
func (*BenchmarkEntry) GetIters ¶ added in v0.4.0
func (x *BenchmarkEntry) GetIters() int64
func (*BenchmarkEntry) GetMetrics ¶ added in v0.4.0
func (x *BenchmarkEntry) GetMetrics() []*MetricEntry
func (*BenchmarkEntry) GetName ¶ added in v0.4.0
func (x *BenchmarkEntry) GetName() string
func (*BenchmarkEntry) GetThroughput ¶ added in v0.4.0
func (x *BenchmarkEntry) GetThroughput() float64
func (*BenchmarkEntry) GetWallTime ¶ added in v0.4.0
func (x *BenchmarkEntry) GetWallTime() float64
func (*BenchmarkEntry) ProtoMessage ¶ added in v0.4.0
func (*BenchmarkEntry) ProtoMessage()
func (*BenchmarkEntry) ProtoReflect ¶ added in v0.4.0
func (x *BenchmarkEntry) ProtoReflect() protoreflect.Message
func (*BenchmarkEntry) Reset ¶ added in v0.4.0
func (x *BenchmarkEntry) Reset()
func (*BenchmarkEntry) String ¶ added in v0.4.0
func (x *BenchmarkEntry) String() string
type BinSummary ¶ added in v0.4.0
type BinSummary struct { Bin int32 `protobuf:"varint,1,opt,name=bin,proto3" json:"bin,omitempty"` TotalBytesInUse int64 `protobuf:"varint,2,opt,name=total_bytes_in_use,json=totalBytesInUse,proto3" json:"total_bytes_in_use,omitempty"` TotalBytesInBin int64 `protobuf:"varint,3,opt,name=total_bytes_in_bin,json=totalBytesInBin,proto3" json:"total_bytes_in_bin,omitempty"` TotalChunksInUse int64 `protobuf:"varint,4,opt,name=total_chunks_in_use,json=totalChunksInUse,proto3" json:"total_chunks_in_use,omitempty"` TotalChunksInBin int64 `protobuf:"varint,5,opt,name=total_chunks_in_bin,json=totalChunksInBin,proto3" json:"total_chunks_in_bin,omitempty"` // contains filtered or unexported fields }
func (*BinSummary) Descriptor
deprecated
added in
v0.4.0
func (*BinSummary) Descriptor() ([]byte, []int)
Deprecated: Use BinSummary.ProtoReflect.Descriptor instead.
func (*BinSummary) GetBin ¶ added in v0.4.0
func (x *BinSummary) GetBin() int32
func (*BinSummary) GetTotalBytesInBin ¶ added in v0.4.0
func (x *BinSummary) GetTotalBytesInBin() int64
func (*BinSummary) GetTotalBytesInUse ¶ added in v0.4.0
func (x *BinSummary) GetTotalBytesInUse() int64
func (*BinSummary) GetTotalChunksInBin ¶ added in v0.4.0
func (x *BinSummary) GetTotalChunksInBin() int64
func (*BinSummary) GetTotalChunksInUse ¶ added in v0.4.0
func (x *BinSummary) GetTotalChunksInUse() int64
func (*BinSummary) ProtoMessage ¶ added in v0.4.0
func (*BinSummary) ProtoMessage()
func (*BinSummary) ProtoReflect ¶ added in v0.4.0
func (x *BinSummary) ProtoReflect() protoreflect.Message
func (*BinSummary) Reset ¶ added in v0.4.0
func (x *BinSummary) Reset()
func (*BinSummary) String ¶ added in v0.4.0
func (x *BinSummary) String() string
type BuildConfiguration ¶ added in v0.4.0
type BuildConfiguration struct { Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` // opt, dbg, etc CcFlags []string `protobuf:"bytes,2,rep,name=cc_flags,json=ccFlags,proto3" json:"cc_flags,omitempty"` // CC compiler flags, if known Opts []string `protobuf:"bytes,3,rep,name=opts,proto3" json:"opts,omitempty"` // Bazel compilation options, if known // contains filtered or unexported fields }
func (*BuildConfiguration) Descriptor
deprecated
added in
v0.4.0
func (*BuildConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use BuildConfiguration.ProtoReflect.Descriptor instead.
func (*BuildConfiguration) GetCcFlags ¶ added in v0.4.0
func (x *BuildConfiguration) GetCcFlags() []string
func (*BuildConfiguration) GetMode ¶ added in v0.4.0
func (x *BuildConfiguration) GetMode() string
func (*BuildConfiguration) GetOpts ¶ added in v0.4.0
func (x *BuildConfiguration) GetOpts() []string
func (*BuildConfiguration) ProtoMessage ¶ added in v0.4.0
func (*BuildConfiguration) ProtoMessage()
func (*BuildConfiguration) ProtoReflect ¶ added in v0.4.0
func (x *BuildConfiguration) ProtoReflect() protoreflect.Message
func (*BuildConfiguration) Reset ¶ added in v0.4.0
func (x *BuildConfiguration) Reset()
func (*BuildConfiguration) String ¶ added in v0.4.0
func (x *BuildConfiguration) String() string
type CPUInfo ¶ added in v0.4.0
type CPUInfo struct { NumCores int64 `protobuf:"varint,1,opt,name=num_cores,json=numCores,proto3" json:"num_cores,omitempty"` NumCoresAllowed int64 `protobuf:"varint,2,opt,name=num_cores_allowed,json=numCoresAllowed,proto3" json:"num_cores_allowed,omitempty"` // How fast are these cpus? MhzPerCpu float64 `protobuf:"fixed64,3,opt,name=mhz_per_cpu,json=mhzPerCpu,proto3" json:"mhz_per_cpu,omitempty"` // Additional cpu information. For example, // Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB CpuInfo string `protobuf:"bytes,4,opt,name=cpu_info,json=cpuInfo,proto3" json:"cpu_info,omitempty"` // What kind of cpu scaling is enabled on the host. // Examples include "performance", "ondemand", "conservative", "mixed". CpuGovernor string `protobuf:"bytes,5,opt,name=cpu_governor,json=cpuGovernor,proto3" json:"cpu_governor,omitempty"` // Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB) CacheSize map[string]int64 `` /* 177-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CPUInfo) Descriptor
deprecated
added in
v0.4.0
func (*CPUInfo) GetCacheSize ¶ added in v0.4.0
func (*CPUInfo) GetCpuGovernor ¶ added in v0.4.0
func (*CPUInfo) GetCpuInfo ¶ added in v0.4.0
func (*CPUInfo) GetMhzPerCpu ¶ added in v0.4.0
func (*CPUInfo) GetNumCores ¶ added in v0.4.0
func (*CPUInfo) GetNumCoresAllowed ¶ added in v0.4.0
func (*CPUInfo) ProtoMessage ¶ added in v0.4.0
func (*CPUInfo) ProtoMessage()
func (*CPUInfo) ProtoReflect ¶ added in v0.4.0
func (x *CPUInfo) ProtoReflect() protoreflect.Message
type Code ¶
type Code int32
The canonical error codes for TensorFlow APIs.
Warnings:
- Do not change any numeric assignments.
- Changes to this list should only be made if there is a compelling need that can't be satisfied in another way. Such changes must be approved by at least two OWNERS.
- These error codes must match gRPC and protobuf error codes (except for DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_).
Sometimes multiple error codes may apply. Services should return the most specific error code that applies. For example, prefer OUT_OF_RANGE over FAILED_PRECONDITION if both codes apply. Similarly prefer NOT_FOUND or ALREADY_EXISTS over FAILED_PRECONDITION.
const ( // Not an error; returned on success Code_OK Code = 0 // The operation was cancelled (typically by the caller). Code_CANCELLED Code = 1 // Unknown error. An example of where this error may be returned is // if a Status value received from another address space belongs to // an error-space that is not known in this address space. Also // errors raised by APIs that do not return enough error information // may be converted to this error. Code_UNKNOWN Code = 2 // Client specified an invalid argument. Note that this differs // from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments // that are problematic regardless of the state of the system // (e.g., a malformed file name). Code_INVALID_ARGUMENT Code = 3 // Deadline expired before operation could complete. For operations // that change the state of the system, this error may be returned // even if the operation has completed successfully. For example, a // successful response from a server could have been delayed long // enough for the deadline to expire. Code_DEADLINE_EXCEEDED Code = 4 // Some requested entity (e.g., file or directory) was not found. // For privacy reasons, this code *may* be returned when the client // does not have the access right to the entity. Code_NOT_FOUND Code = 5 // Some entity that we attempted to create (e.g., file or directory) // already exists. Code_ALREADY_EXISTS Code = 6 // The caller does not have permission to execute the specified // operation. PERMISSION_DENIED must not be used for rejections // caused by exhausting some resource (use RESOURCE_EXHAUSTED // instead for those errors). PERMISSION_DENIED must not be // used if the caller can not be identified (use UNAUTHENTICATED // instead for those errors). Code_PERMISSION_DENIED Code = 7 // The request does not have valid authentication credentials for the // operation. Code_UNAUTHENTICATED Code = 16 // Some resource has been exhausted, perhaps a per-user quota, or // perhaps the entire file system is out of space. Code_RESOURCE_EXHAUSTED Code = 8 // Operation was rejected because the system is not in a state // required for the operation's execution. For example, directory // to be deleted may be non-empty, an rmdir operation is applied to // a non-directory, etc. // // A litmus test that may help a service implementor in deciding // between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE: // // (a) Use UNAVAILABLE if the client can retry just the failing call. // (b) Use ABORTED if the client should retry at a higher-level // (e.g., restarting a read-modify-write sequence). // (c) Use FAILED_PRECONDITION if the client should not retry until // the system state has been explicitly fixed. E.g., if an "rmdir" // fails because the directory is non-empty, FAILED_PRECONDITION // should be returned since the client should not retry unless // they have first fixed up the directory by deleting files from it. // (d) Use FAILED_PRECONDITION if the client performs conditional // REST Get/Update/Delete on a resource and the resource on the // server does not match the condition. E.g., conflicting // read-modify-write on the same resource. Code_FAILED_PRECONDITION Code = 9 // The operation was aborted, typically due to a concurrency issue // like sequencer check failures, transaction aborts, etc. // // See litmus test above for deciding between FAILED_PRECONDITION, // ABORTED, and UNAVAILABLE. Code_ABORTED Code = 10 // Operation tried to iterate past the valid input range. E.g., seeking or // reading past end of file. // // Unlike INVALID_ARGUMENT, this error indicates a problem that may // be fixed if the system state changes. For example, a 32-bit file // system will generate INVALID_ARGUMENT if asked to read at an // offset that is not in the range [0,2^32-1], but it will generate // OUT_OF_RANGE if asked to read from an offset past the current // file size. // // There is a fair bit of overlap between FAILED_PRECONDITION and // OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific // error) when it applies so that callers who are iterating through // a space can easily look for an OUT_OF_RANGE error to detect when // they are done. Code_OUT_OF_RANGE Code = 11 // Operation is not implemented or not supported/enabled in this service. Code_UNIMPLEMENTED Code = 12 // Internal errors. Means some invariant expected by the underlying // system has been broken. If you see one of these errors, // something is very broken. Code_INTERNAL Code = 13 // The service is currently unavailable. This is a most likely a // transient condition and may be corrected by retrying with // a backoff. // // See litmus test above for deciding between FAILED_PRECONDITION, // ABORTED, and UNAVAILABLE. Code_UNAVAILABLE Code = 14 // Unrecoverable data loss or corruption. Code_DATA_LOSS Code = 15 // An extra enum entry to prevent people from writing code that // fails to compile when a new code is added. // // Nobody should ever reference this enumeration entry. In particular, // if you write C++ code that switches on this enumeration, add a default: // case instead of a case that mentions this enumeration entry. // // Nobody should rely on the value (currently 20) listed here. It // may change in the future. Code_DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_ Code = 20 )
func (Code) Descriptor ¶
func (Code) Descriptor() protoreflect.EnumDescriptor
func (Code) EnumDescriptor
deprecated
func (Code) Number ¶
func (x Code) Number() protoreflect.EnumNumber
func (Code) Type ¶
func (Code) Type() protoreflect.EnumType
type CommitId ¶ added in v0.4.0
type CommitId struct { // Types that are assignable to Kind: // // *CommitId_Changelist // *CommitId_Hash Kind isCommitId_Kind `protobuf_oneof:"kind"` // Hash of intermediate change between hash/changelist and what was tested. // Not used if the build is from a commit without modifications. Snapshot string `protobuf:"bytes,3,opt,name=snapshot,proto3" json:"snapshot,omitempty"` // Changelist tested if the change list is not already submitted. PendingChangelist int64 `protobuf:"varint,4,opt,name=pending_changelist,json=pendingChangelist,proto3" json:"pending_changelist,omitempty"` // contains filtered or unexported fields }
func (*CommitId) Descriptor
deprecated
added in
v0.4.0
func (*CommitId) GetChangelist ¶ added in v0.4.0
func (*CommitId) GetPendingChangelist ¶ added in v0.4.0
func (*CommitId) GetSnapshot ¶ added in v0.4.0
func (*CommitId) ProtoMessage ¶ added in v0.4.0
func (*CommitId) ProtoMessage()
func (*CommitId) ProtoReflect ¶ added in v0.4.0
func (x *CommitId) ProtoReflect() protoreflect.Message
type CommitId_Changelist ¶ added in v0.4.0
type CommitId_Changelist struct { // Submitted changelist. Changelist int64 `protobuf:"varint,1,opt,name=changelist,proto3,oneof"` }
type CommitId_Hash ¶ added in v0.4.0
type CommitId_Hash struct {
Hash string `protobuf:"bytes,2,opt,name=hash,proto3,oneof"`
}
type EntryValue ¶ added in v0.4.0
type EntryValue struct { // Types that are assignable to Kind: // // *EntryValue_DoubleValue // *EntryValue_StringValue Kind isEntryValue_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
func (*EntryValue) Descriptor
deprecated
added in
v0.4.0
func (*EntryValue) Descriptor() ([]byte, []int)
Deprecated: Use EntryValue.ProtoReflect.Descriptor instead.
func (*EntryValue) GetDoubleValue ¶ added in v0.4.0
func (x *EntryValue) GetDoubleValue() float64
func (*EntryValue) GetKind ¶ added in v0.4.0
func (m *EntryValue) GetKind() isEntryValue_Kind
func (*EntryValue) GetStringValue ¶ added in v0.4.0
func (x *EntryValue) GetStringValue() string
func (*EntryValue) ProtoMessage ¶ added in v0.4.0
func (*EntryValue) ProtoMessage()
func (*EntryValue) ProtoReflect ¶ added in v0.4.0
func (x *EntryValue) ProtoReflect() protoreflect.Message
func (*EntryValue) Reset ¶ added in v0.4.0
func (x *EntryValue) Reset()
func (*EntryValue) String ¶ added in v0.4.0
func (x *EntryValue) String() string
type EntryValue_DoubleValue ¶ added in v0.4.0
type EntryValue_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,1,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type EntryValue_StringValue ¶ added in v0.4.0
type EntryValue_StringValue struct {
StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type GPUInfo ¶ added in v0.4.0
type GPUInfo struct { Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // e.g. "Tesla K40c" Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // Final entry in output of "nvidia-smi -L" BusId string `protobuf:"bytes,3,opt,name=bus_id,json=busId,proto3" json:"bus_id,omitempty"` // e.g. "0000:04:00.0" // contains filtered or unexported fields }
func (*GPUInfo) Descriptor
deprecated
added in
v0.4.0
func (*GPUInfo) ProtoMessage ¶ added in v0.4.0
func (*GPUInfo) ProtoMessage()
func (*GPUInfo) ProtoReflect ¶ added in v0.4.0
func (x *GPUInfo) ProtoReflect() protoreflect.Message
type GrpcPayloadContainer ¶ added in v0.4.0
type GrpcPayloadContainer struct { Payloads map[string][]byte `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
Used to serialize and transmit tensorflow::Status payloads through grpc::Status `error_details` since grpc::Status lacks payload API. TODO(b/204231601): Use GRPC API once supported.
func (*GrpcPayloadContainer) Descriptor
deprecated
added in
v0.4.0
func (*GrpcPayloadContainer) Descriptor() ([]byte, []int)
Deprecated: Use GrpcPayloadContainer.ProtoReflect.Descriptor instead.
func (*GrpcPayloadContainer) GetPayloads ¶ added in v0.4.0
func (x *GrpcPayloadContainer) GetPayloads() map[string][]byte
func (*GrpcPayloadContainer) ProtoMessage ¶ added in v0.4.0
func (*GrpcPayloadContainer) ProtoMessage()
func (*GrpcPayloadContainer) ProtoReflect ¶ added in v0.4.0
func (x *GrpcPayloadContainer) ProtoReflect() protoreflect.Message
func (*GrpcPayloadContainer) Reset ¶ added in v0.4.0
func (x *GrpcPayloadContainer) Reset()
func (*GrpcPayloadContainer) String ¶ added in v0.4.0
func (x *GrpcPayloadContainer) String() string
type GrpcPayloadsLost ¶ added in v0.4.0
type GrpcPayloadsLost struct {
// contains filtered or unexported fields
}
If included as a payload, this message flags the Status to have lost payloads during the GRPC transmission. URI: "type.googleapis.com/tensorflow.distributed_runtime.GrpcPayloadsLost"
func (*GrpcPayloadsLost) Descriptor
deprecated
added in
v0.4.0
func (*GrpcPayloadsLost) Descriptor() ([]byte, []int)
Deprecated: Use GrpcPayloadsLost.ProtoReflect.Descriptor instead.
func (*GrpcPayloadsLost) ProtoMessage ¶ added in v0.4.0
func (*GrpcPayloadsLost) ProtoMessage()
func (*GrpcPayloadsLost) ProtoReflect ¶ added in v0.4.0
func (x *GrpcPayloadsLost) ProtoReflect() protoreflect.Message
func (*GrpcPayloadsLost) Reset ¶ added in v0.4.0
func (x *GrpcPayloadsLost) Reset()
func (*GrpcPayloadsLost) String ¶ added in v0.4.0
func (x *GrpcPayloadsLost) String() string
type HistogramProto ¶
type HistogramProto struct { Min float64 `protobuf:"fixed64,1,opt,name=min,proto3" json:"min,omitempty"` Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"` Num float64 `protobuf:"fixed64,3,opt,name=num,proto3" json:"num,omitempty"` Sum float64 `protobuf:"fixed64,4,opt,name=sum,proto3" json:"sum,omitempty"` SumSquares float64 `protobuf:"fixed64,5,opt,name=sum_squares,json=sumSquares,proto3" json:"sum_squares,omitempty"` // Parallel arrays encoding the bucket boundaries and the bucket values. // bucket(i) is the count for the bucket i. The range for // a bucket is: // // i == 0: -DBL_MAX .. bucket_limit(0) // i != 0: bucket_limit(i-1) .. bucket_limit(i) BucketLimit []float64 `protobuf:"fixed64,6,rep,packed,name=bucket_limit,json=bucketLimit,proto3" json:"bucket_limit,omitempty"` Bucket []float64 `protobuf:"fixed64,7,rep,packed,name=bucket,proto3" json:"bucket,omitempty"` // contains filtered or unexported fields }
Serialization format for histogram module in tsl/lib/histogram/histogram.h
func (*HistogramProto) Descriptor
deprecated
func (*HistogramProto) Descriptor() ([]byte, []int)
Deprecated: Use HistogramProto.ProtoReflect.Descriptor instead.
func (*HistogramProto) GetBucket ¶
func (x *HistogramProto) GetBucket() []float64
func (*HistogramProto) GetBucketLimit ¶
func (x *HistogramProto) GetBucketLimit() []float64
func (*HistogramProto) GetMax ¶
func (x *HistogramProto) GetMax() float64
func (*HistogramProto) GetMin ¶
func (x *HistogramProto) GetMin() float64
func (*HistogramProto) GetNum ¶
func (x *HistogramProto) GetNum() float64
func (*HistogramProto) GetSum ¶
func (x *HistogramProto) GetSum() float64
func (*HistogramProto) GetSumSquares ¶
func (x *HistogramProto) GetSumSquares() float64
func (*HistogramProto) ProtoMessage ¶
func (*HistogramProto) ProtoMessage()
func (*HistogramProto) ProtoReflect ¶
func (x *HistogramProto) ProtoReflect() protoreflect.Message
func (*HistogramProto) Reset ¶
func (x *HistogramProto) Reset()
func (*HistogramProto) String ¶
func (x *HistogramProto) String() string
type MachineConfiguration ¶ added in v0.4.0
type MachineConfiguration struct { // Host name of machine that ran the benchmark. Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` // Unique serial number of the machine. SerialIdentifier string `protobuf:"bytes,7,opt,name=serial_identifier,json=serialIdentifier,proto3" json:"serial_identifier,omitempty"` // Additional platform information. PlatformInfo *PlatformInfo `protobuf:"bytes,2,opt,name=platform_info,json=platformInfo,proto3" json:"platform_info,omitempty"` // CPU Information. CpuInfo *CPUInfo `protobuf:"bytes,3,opt,name=cpu_info,json=cpuInfo,proto3" json:"cpu_info,omitempty"` // Other devices that are attached and relevant (e.g. GPUInfo). DeviceInfo []*anypb.Any `protobuf:"bytes,4,rep,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"` // Devices accessible to the test (e.g. as given by list_local_devices). AvailableDeviceInfo []*AvailableDeviceInfo `protobuf:"bytes,5,rep,name=available_device_info,json=availableDeviceInfo,proto3" json:"available_device_info,omitempty"` MemoryInfo *MemoryInfo `protobuf:"bytes,6,opt,name=memory_info,json=memoryInfo,proto3" json:"memory_info,omitempty"` // contains filtered or unexported fields }
func (*MachineConfiguration) Descriptor
deprecated
added in
v0.4.0
func (*MachineConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use MachineConfiguration.ProtoReflect.Descriptor instead.
func (*MachineConfiguration) GetAvailableDeviceInfo ¶ added in v0.4.0
func (x *MachineConfiguration) GetAvailableDeviceInfo() []*AvailableDeviceInfo
func (*MachineConfiguration) GetCpuInfo ¶ added in v0.4.0
func (x *MachineConfiguration) GetCpuInfo() *CPUInfo
func (*MachineConfiguration) GetDeviceInfo ¶ added in v0.4.0
func (x *MachineConfiguration) GetDeviceInfo() []*anypb.Any
func (*MachineConfiguration) GetHostname ¶ added in v0.4.0
func (x *MachineConfiguration) GetHostname() string
func (*MachineConfiguration) GetMemoryInfo ¶ added in v0.4.0
func (x *MachineConfiguration) GetMemoryInfo() *MemoryInfo
func (*MachineConfiguration) GetPlatformInfo ¶ added in v0.4.0
func (x *MachineConfiguration) GetPlatformInfo() *PlatformInfo
func (*MachineConfiguration) GetSerialIdentifier ¶ added in v0.4.0
func (x *MachineConfiguration) GetSerialIdentifier() string
func (*MachineConfiguration) ProtoMessage ¶ added in v0.4.0
func (*MachineConfiguration) ProtoMessage()
func (*MachineConfiguration) ProtoReflect ¶ added in v0.4.0
func (x *MachineConfiguration) ProtoReflect() protoreflect.Message
func (*MachineConfiguration) Reset ¶ added in v0.4.0
func (x *MachineConfiguration) Reset()
func (*MachineConfiguration) String ¶ added in v0.4.0
func (x *MachineConfiguration) String() string
type MemAllocatorStats ¶ added in v0.4.0
type MemAllocatorStats struct { NumAllocs int64 `protobuf:"varint,1,opt,name=num_allocs,json=numAllocs,proto3" json:"num_allocs,omitempty"` BytesInUse int64 `protobuf:"varint,2,opt,name=bytes_in_use,json=bytesInUse,proto3" json:"bytes_in_use,omitempty"` PeakBytesInUse int64 `protobuf:"varint,3,opt,name=peak_bytes_in_use,json=peakBytesInUse,proto3" json:"peak_bytes_in_use,omitempty"` LargestAllocSize int64 `protobuf:"varint,4,opt,name=largest_alloc_size,json=largestAllocSize,proto3" json:"largest_alloc_size,omitempty"` FragmentationMetric float32 `protobuf:"fixed32,5,opt,name=fragmentation_metric,json=fragmentationMetric,proto3" json:"fragmentation_metric,omitempty"` // contains filtered or unexported fields }
Some of the data from AllocatorStats
func (*MemAllocatorStats) Descriptor
deprecated
added in
v0.4.0
func (*MemAllocatorStats) Descriptor() ([]byte, []int)
Deprecated: Use MemAllocatorStats.ProtoReflect.Descriptor instead.
func (*MemAllocatorStats) GetBytesInUse ¶ added in v0.4.0
func (x *MemAllocatorStats) GetBytesInUse() int64
func (*MemAllocatorStats) GetFragmentationMetric ¶ added in v0.4.0
func (x *MemAllocatorStats) GetFragmentationMetric() float32
func (*MemAllocatorStats) GetLargestAllocSize ¶ added in v0.4.0
func (x *MemAllocatorStats) GetLargestAllocSize() int64
func (*MemAllocatorStats) GetNumAllocs ¶ added in v0.4.0
func (x *MemAllocatorStats) GetNumAllocs() int64
func (*MemAllocatorStats) GetPeakBytesInUse ¶ added in v0.4.0
func (x *MemAllocatorStats) GetPeakBytesInUse() int64
func (*MemAllocatorStats) ProtoMessage ¶ added in v0.4.0
func (*MemAllocatorStats) ProtoMessage()
func (*MemAllocatorStats) ProtoReflect ¶ added in v0.4.0
func (x *MemAllocatorStats) ProtoReflect() protoreflect.Message
func (*MemAllocatorStats) Reset ¶ added in v0.4.0
func (x *MemAllocatorStats) Reset()
func (*MemAllocatorStats) String ¶ added in v0.4.0
func (x *MemAllocatorStats) String() string
type MemChunk ¶ added in v0.4.0
type MemChunk struct { Address uint64 `protobuf:"varint,1,opt,name=address,proto3" json:"address,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` RequestedSize int64 `protobuf:"varint,3,opt,name=requested_size,json=requestedSize,proto3" json:"requested_size,omitempty"` Bin int32 `protobuf:"varint,4,opt,name=bin,proto3" json:"bin,omitempty"` OpName string `protobuf:"bytes,5,opt,name=op_name,json=opName,proto3" json:"op_name,omitempty"` FreedAtCount uint64 `protobuf:"varint,6,opt,name=freed_at_count,json=freedAtCount,proto3" json:"freed_at_count,omitempty"` ActionCount uint64 `protobuf:"varint,7,opt,name=action_count,json=actionCount,proto3" json:"action_count,omitempty"` InUse bool `protobuf:"varint,8,opt,name=in_use,json=inUse,proto3" json:"in_use,omitempty"` StepId uint64 `protobuf:"varint,9,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"` // contains filtered or unexported fields }
func (*MemChunk) Descriptor
deprecated
added in
v0.4.0
func (*MemChunk) GetActionCount ¶ added in v0.4.0
func (*MemChunk) GetAddress ¶ added in v0.4.0
func (*MemChunk) GetFreedAtCount ¶ added in v0.4.0
func (*MemChunk) GetRequestedSize ¶ added in v0.4.0
func (*MemChunk) ProtoMessage ¶ added in v0.4.0
func (*MemChunk) ProtoMessage()
func (*MemChunk) ProtoReflect ¶ added in v0.4.0
func (x *MemChunk) ProtoReflect() protoreflect.Message
type MemoryDump ¶ added in v0.4.0
type MemoryDump struct { AllocatorName string `protobuf:"bytes,1,opt,name=allocator_name,json=allocatorName,proto3" json:"allocator_name,omitempty"` BinSummary []*BinSummary `protobuf:"bytes,2,rep,name=bin_summary,json=binSummary,proto3" json:"bin_summary,omitempty"` Chunk []*MemChunk `protobuf:"bytes,3,rep,name=chunk,proto3" json:"chunk,omitempty"` SnapShot []*SnapShot `protobuf:"bytes,4,rep,name=snap_shot,json=snapShot,proto3" json:"snap_shot,omitempty"` Stats *MemAllocatorStats `protobuf:"bytes,5,opt,name=stats,proto3" json:"stats,omitempty"` // contains filtered or unexported fields }
func (*MemoryDump) Descriptor
deprecated
added in
v0.4.0
func (*MemoryDump) Descriptor() ([]byte, []int)
Deprecated: Use MemoryDump.ProtoReflect.Descriptor instead.
func (*MemoryDump) GetAllocatorName ¶ added in v0.4.0
func (x *MemoryDump) GetAllocatorName() string
func (*MemoryDump) GetBinSummary ¶ added in v0.4.0
func (x *MemoryDump) GetBinSummary() []*BinSummary
func (*MemoryDump) GetChunk ¶ added in v0.4.0
func (x *MemoryDump) GetChunk() []*MemChunk
func (*MemoryDump) GetSnapShot ¶ added in v0.4.0
func (x *MemoryDump) GetSnapShot() []*SnapShot
func (*MemoryDump) GetStats ¶ added in v0.4.0
func (x *MemoryDump) GetStats() *MemAllocatorStats
func (*MemoryDump) ProtoMessage ¶ added in v0.4.0
func (*MemoryDump) ProtoMessage()
func (*MemoryDump) ProtoReflect ¶ added in v0.4.0
func (x *MemoryDump) ProtoReflect() protoreflect.Message
func (*MemoryDump) Reset ¶ added in v0.4.0
func (x *MemoryDump) Reset()
func (*MemoryDump) String ¶ added in v0.4.0
func (x *MemoryDump) String() string
type MemoryInfo ¶ added in v0.4.0
type MemoryInfo struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // Total virtual memory in bytes Available int64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` // Immediately available memory in bytes // contains filtered or unexported fields }
func (*MemoryInfo) Descriptor
deprecated
added in
v0.4.0
func (*MemoryInfo) Descriptor() ([]byte, []int)
Deprecated: Use MemoryInfo.ProtoReflect.Descriptor instead.
func (*MemoryInfo) GetAvailable ¶ added in v0.4.0
func (x *MemoryInfo) GetAvailable() int64
func (*MemoryInfo) GetTotal ¶ added in v0.4.0
func (x *MemoryInfo) GetTotal() int64
func (*MemoryInfo) ProtoMessage ¶ added in v0.4.0
func (*MemoryInfo) ProtoMessage()
func (*MemoryInfo) ProtoReflect ¶ added in v0.4.0
func (x *MemoryInfo) ProtoReflect() protoreflect.Message
func (*MemoryInfo) Reset ¶ added in v0.4.0
func (x *MemoryInfo) Reset()
func (*MemoryInfo) String ¶ added in v0.4.0
func (x *MemoryInfo) String() string
type MetricEntry ¶ added in v0.4.0
type MetricEntry struct { // Metric name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Metric value Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` // The minimum acceptable value for the metric if specified MinValue *wrapperspb.DoubleValue `protobuf:"bytes,3,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` // The maximum acceptable value for the metric if specified MaxValue *wrapperspb.DoubleValue `protobuf:"bytes,4,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` // contains filtered or unexported fields }
func (*MetricEntry) Descriptor
deprecated
added in
v0.4.0
func (*MetricEntry) Descriptor() ([]byte, []int)
Deprecated: Use MetricEntry.ProtoReflect.Descriptor instead.
func (*MetricEntry) GetMaxValue ¶ added in v0.4.0
func (x *MetricEntry) GetMaxValue() *wrapperspb.DoubleValue
func (*MetricEntry) GetMinValue ¶ added in v0.4.0
func (x *MetricEntry) GetMinValue() *wrapperspb.DoubleValue
func (*MetricEntry) GetName ¶ added in v0.4.0
func (x *MetricEntry) GetName() string
func (*MetricEntry) GetValue ¶ added in v0.4.0
func (x *MetricEntry) GetValue() float64
func (*MetricEntry) ProtoMessage ¶ added in v0.4.0
func (*MetricEntry) ProtoMessage()
func (*MetricEntry) ProtoReflect ¶ added in v0.4.0
func (x *MetricEntry) ProtoReflect() protoreflect.Message
func (*MetricEntry) Reset ¶ added in v0.4.0
func (x *MetricEntry) Reset()
func (*MetricEntry) String ¶ added in v0.4.0
func (x *MetricEntry) String() string
type PlatformInfo ¶ added in v0.4.0
type PlatformInfo struct { Bits string `protobuf:"bytes,1,opt,name=bits,proto3" json:"bits,omitempty"` // e.g. '64bit' Linkage string `protobuf:"bytes,2,opt,name=linkage,proto3" json:"linkage,omitempty"` // e.g. 'ELF' Machine string `protobuf:"bytes,3,opt,name=machine,proto3" json:"machine,omitempty"` // e.g. 'i386' Release string `protobuf:"bytes,4,opt,name=release,proto3" json:"release,omitempty"` // e.g. '3.13.0-76-generic' System string `protobuf:"bytes,5,opt,name=system,proto3" json:"system,omitempty"` // e.g. 'Linux' Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` // e.g. '#120-Ubuntu SMP Mon Jan 18 15:59:10 UTC 2016' // contains filtered or unexported fields }
func (*PlatformInfo) Descriptor
deprecated
added in
v0.4.0
func (*PlatformInfo) Descriptor() ([]byte, []int)
Deprecated: Use PlatformInfo.ProtoReflect.Descriptor instead.
func (*PlatformInfo) GetBits ¶ added in v0.4.0
func (x *PlatformInfo) GetBits() string
func (*PlatformInfo) GetLinkage ¶ added in v0.4.0
func (x *PlatformInfo) GetLinkage() string
func (*PlatformInfo) GetMachine ¶ added in v0.4.0
func (x *PlatformInfo) GetMachine() string
func (*PlatformInfo) GetRelease ¶ added in v0.4.0
func (x *PlatformInfo) GetRelease() string
func (*PlatformInfo) GetSystem ¶ added in v0.4.0
func (x *PlatformInfo) GetSystem() string
func (*PlatformInfo) GetVersion ¶ added in v0.4.0
func (x *PlatformInfo) GetVersion() string
func (*PlatformInfo) ProtoMessage ¶ added in v0.4.0
func (*PlatformInfo) ProtoMessage()
func (*PlatformInfo) ProtoReflect ¶ added in v0.4.0
func (x *PlatformInfo) ProtoReflect() protoreflect.Message
func (*PlatformInfo) Reset ¶ added in v0.4.0
func (x *PlatformInfo) Reset()
func (*PlatformInfo) String ¶ added in v0.4.0
func (x *PlatformInfo) String() string
type RPCOptions ¶ added in v0.4.0
type RPCOptions struct { // If true, always use RPC to contact the session target. // // If false (the default option), TensorFlow may use an optimized // transport for client-master communication that avoids the RPC // stack. This option is primarily for used testing the RPC stack. UseRpcForInprocessMaster bool `` /* 140-byte string literal not displayed */ // The compression algorithm to be used. One of "deflate", "gzip". CompressionAlgorithm string `protobuf:"bytes,2,opt,name=compression_algorithm,json=compressionAlgorithm,proto3" json:"compression_algorithm,omitempty"` // If compression_algorithm is set, the compression level to be used. // From 0 (no compression), up to 3. CompressionLevel int32 `protobuf:"varint,3,opt,name=compression_level,json=compressionLevel,proto3" json:"compression_level,omitempty"` // Setting cache_rpc_response to true will enable sender side caching of // response for RecvTensorAsync and RecvBufAsync to allow receiver to retry // requests . This is only necessary when the network fabric is experiencing a // significant error rate. Without it we'll fail a step on an network error, // while with it we'll be able to complete long steps (like complex // initializations) in the face of some network errors during RecvTensor. CacheRpcResponse bool `protobuf:"varint,4,opt,name=cache_rpc_response,json=cacheRpcResponse,proto3" json:"cache_rpc_response,omitempty"` // Disables TCP connection sharing when opening a new RPC channel. DisableSessionConnectionSharing bool `` /* 159-byte string literal not displayed */ // Setting num_channels_per_target > 0 allows uses of multiple channels to // communicate to the same target. This can be used to improve the aggregate // throughput on high speed links (e.g 100G) where single connection is not // sufficient to maximize link utilization. Note that a single RPC only goes // on a single channel, this only helps in situations where there are multiple // transfers to the same target overlapping in time. NumChannelsPerTarget int32 `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
RPC options for distributed runtime.
func (*RPCOptions) Descriptor
deprecated
added in
v0.4.0
func (*RPCOptions) Descriptor() ([]byte, []int)
Deprecated: Use RPCOptions.ProtoReflect.Descriptor instead.
func (*RPCOptions) GetCacheRpcResponse ¶ added in v0.4.0
func (x *RPCOptions) GetCacheRpcResponse() bool
func (*RPCOptions) GetCompressionAlgorithm ¶ added in v0.4.0
func (x *RPCOptions) GetCompressionAlgorithm() string
func (*RPCOptions) GetCompressionLevel ¶ added in v0.4.0
func (x *RPCOptions) GetCompressionLevel() int32
func (*RPCOptions) GetDisableSessionConnectionSharing ¶ added in v0.4.0
func (x *RPCOptions) GetDisableSessionConnectionSharing() bool
func (*RPCOptions) GetNumChannelsPerTarget ¶ added in v0.4.0
func (x *RPCOptions) GetNumChannelsPerTarget() int32
func (*RPCOptions) GetUseRpcForInprocessMaster ¶ added in v0.4.0
func (x *RPCOptions) GetUseRpcForInprocessMaster() bool
func (*RPCOptions) ProtoMessage ¶ added in v0.4.0
func (*RPCOptions) ProtoMessage()
func (*RPCOptions) ProtoReflect ¶ added in v0.4.0
func (x *RPCOptions) ProtoReflect() protoreflect.Message
func (*RPCOptions) Reset ¶ added in v0.4.0
func (x *RPCOptions) Reset()
func (*RPCOptions) String ¶ added in v0.4.0
func (x *RPCOptions) String() string
type RunConfiguration ¶ added in v0.4.0
type RunConfiguration struct { Argument []string `protobuf:"bytes,1,rep,name=argument,proto3" json:"argument,omitempty"` // Environment variables used to run the test/benchmark. EnvVars map[string]string `` /* 170-byte string literal not displayed */ // contains filtered or unexported fields }
Run-specific items such as arguments to the test / benchmark.
func (*RunConfiguration) Descriptor
deprecated
added in
v0.4.0
func (*RunConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use RunConfiguration.ProtoReflect.Descriptor instead.
func (*RunConfiguration) GetArgument ¶ added in v0.4.0
func (x *RunConfiguration) GetArgument() []string
func (*RunConfiguration) GetEnvVars ¶ added in v0.4.0
func (x *RunConfiguration) GetEnvVars() map[string]string
func (*RunConfiguration) ProtoMessage ¶ added in v0.4.0
func (*RunConfiguration) ProtoMessage()
func (*RunConfiguration) ProtoReflect ¶ added in v0.4.0
func (x *RunConfiguration) ProtoReflect() protoreflect.Message
func (*RunConfiguration) Reset ¶ added in v0.4.0
func (x *RunConfiguration) Reset()
func (*RunConfiguration) String ¶ added in v0.4.0
func (x *RunConfiguration) String() string
type SnapShot ¶ added in v0.4.0
type SnapShot struct { ActionCount uint64 `protobuf:"varint,1,opt,name=action_count,json=actionCount,proto3" json:"action_count,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*SnapShot) Descriptor
deprecated
added in
v0.4.0
func (*SnapShot) GetActionCount ¶ added in v0.4.0
func (*SnapShot) ProtoMessage ¶ added in v0.4.0
func (*SnapShot) ProtoMessage()
func (*SnapShot) ProtoReflect ¶ added in v0.4.0
func (x *SnapShot) ProtoReflect() protoreflect.Message
type StatusProto ¶ added in v0.5.0
type StatusProto struct { // Status code as defined in tensorflow/tsl/protobuf/error_codes.proto. Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=tensorflow.error.Code" json:"code,omitempty"` // Detail error message. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
Wire-format for Status. Next tag: 3
func (*StatusProto) Descriptor
deprecated
added in
v0.5.0
func (*StatusProto) Descriptor() ([]byte, []int)
Deprecated: Use StatusProto.ProtoReflect.Descriptor instead.
func (*StatusProto) GetCode ¶ added in v0.5.0
func (x *StatusProto) GetCode() Code
func (*StatusProto) GetMessage ¶ added in v0.5.0
func (x *StatusProto) GetMessage() string
func (*StatusProto) ProtoMessage ¶ added in v0.5.0
func (*StatusProto) ProtoMessage()
func (*StatusProto) ProtoReflect ¶ added in v0.5.0
func (x *StatusProto) ProtoReflect() protoreflect.Message
func (*StatusProto) Reset ¶ added in v0.5.0
func (x *StatusProto) Reset()
func (*StatusProto) String ¶ added in v0.5.0
func (x *StatusProto) String() string
type TestResults ¶ added in v0.4.0
type TestResults struct { // The target of the run, e.g.: // // //tensorflow/core:kernels_adjust_contrast_op_benchmark_test Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` // The list of tests or benchmarks in this run. Entries *BenchmarkEntries `protobuf:"bytes,2,opt,name=entries,proto3" json:"entries,omitempty"` // The configuration of the build (compiled opt? with cuda? any copts?) BuildConfiguration *BuildConfiguration `protobuf:"bytes,3,opt,name=build_configuration,json=buildConfiguration,proto3" json:"build_configuration,omitempty"` // The commit id (git hash or changelist) CommitId *CommitId `protobuf:"bytes,4,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"` // The time the run started (in seconds of UTC time since Unix epoch) StartTime int64 `protobuf:"varint,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The amount of time the total run took (wall time in seconds) RunTime float64 `protobuf:"fixed64,6,opt,name=run_time,json=runTime,proto3" json:"run_time,omitempty"` // Machine-specific parameters (Platform and CPU info) MachineConfiguration *MachineConfiguration `protobuf:"bytes,7,opt,name=machine_configuration,json=machineConfiguration,proto3" json:"machine_configuration,omitempty"` // Run-specific parameters (arguments, etc) RunConfiguration *RunConfiguration `protobuf:"bytes,8,opt,name=run_configuration,json=runConfiguration,proto3" json:"run_configuration,omitempty"` // Benchmark target identifier. Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` BenchmarkType TestResults_BenchmarkType `` /* 144-byte string literal not displayed */ // Used for differentiating between continuous and debug builds. // Must be one of: // * cbuild: results from continuous build. // * presubmit: results from oneshot requests. // * culprit: results from culprit finder rerun. RunMode string `protobuf:"bytes,11,opt,name=run_mode,json=runMode,proto3" json:"run_mode,omitempty"` // TensorFlow version this benchmark runs against. // This can be either set to full version or just the major version. TfVersion string `protobuf:"bytes,12,opt,name=tf_version,json=tfVersion,proto3" json:"tf_version,omitempty"` // contains filtered or unexported fields }
The output of one benchmark / test run. Each run contains a list of tests or benchmarks, stored as BenchmarkEntry messages.
This message should be emitted by the reporter (which runs the test / BM in a subprocess and then reads the emitted BenchmarkEntry messages; usually from a serialized json file, finally collecting them along with additional information about the test run.
func (*TestResults) Descriptor
deprecated
added in
v0.4.0
func (*TestResults) Descriptor() ([]byte, []int)
Deprecated: Use TestResults.ProtoReflect.Descriptor instead.
func (*TestResults) GetBenchmarkType ¶ added in v0.4.0
func (x *TestResults) GetBenchmarkType() TestResults_BenchmarkType
func (*TestResults) GetBuildConfiguration ¶ added in v0.4.0
func (x *TestResults) GetBuildConfiguration() *BuildConfiguration
func (*TestResults) GetCommitId ¶ added in v0.4.0
func (x *TestResults) GetCommitId() *CommitId
func (*TestResults) GetEntries ¶ added in v0.4.0
func (x *TestResults) GetEntries() *BenchmarkEntries
func (*TestResults) GetMachineConfiguration ¶ added in v0.4.0
func (x *TestResults) GetMachineConfiguration() *MachineConfiguration
func (*TestResults) GetName ¶ added in v0.4.0
func (x *TestResults) GetName() string
func (*TestResults) GetRunConfiguration ¶ added in v0.4.0
func (x *TestResults) GetRunConfiguration() *RunConfiguration
func (*TestResults) GetRunMode ¶ added in v0.4.0
func (x *TestResults) GetRunMode() string
func (*TestResults) GetRunTime ¶ added in v0.4.0
func (x *TestResults) GetRunTime() float64
func (*TestResults) GetStartTime ¶ added in v0.4.0
func (x *TestResults) GetStartTime() int64
func (*TestResults) GetTarget ¶ added in v0.4.0
func (x *TestResults) GetTarget() string
func (*TestResults) GetTfVersion ¶ added in v0.4.0
func (x *TestResults) GetTfVersion() string
func (*TestResults) ProtoMessage ¶ added in v0.4.0
func (*TestResults) ProtoMessage()
func (*TestResults) ProtoReflect ¶ added in v0.4.0
func (x *TestResults) ProtoReflect() protoreflect.Message
func (*TestResults) Reset ¶ added in v0.4.0
func (x *TestResults) Reset()
func (*TestResults) String ¶ added in v0.4.0
func (x *TestResults) String() string
type TestResults_BenchmarkType ¶ added in v0.4.0
type TestResults_BenchmarkType int32
The type of benchmark.
const ( TestResults_UNKNOWN TestResults_BenchmarkType = 0 // Fallback for protos written before Type was introduced. TestResults_CPP_MICROBENCHMARK TestResults_BenchmarkType = 1 TestResults_PYTHON_BENCHMARK TestResults_BenchmarkType = 2 TestResults_ANDROID_BENCHMARK TestResults_BenchmarkType = 3 TestResults_EDGE_BENCHMARK TestResults_BenchmarkType = 4 TestResults_IOS_BENCHMARK TestResults_BenchmarkType = 5 )
func (TestResults_BenchmarkType) Descriptor ¶ added in v0.4.0
func (TestResults_BenchmarkType) Descriptor() protoreflect.EnumDescriptor
func (TestResults_BenchmarkType) Enum ¶ added in v0.4.0
func (x TestResults_BenchmarkType) Enum() *TestResults_BenchmarkType
func (TestResults_BenchmarkType) EnumDescriptor
deprecated
added in
v0.4.0
func (TestResults_BenchmarkType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestResults_BenchmarkType.Descriptor instead.
func (TestResults_BenchmarkType) Number ¶ added in v0.4.0
func (x TestResults_BenchmarkType) Number() protoreflect.EnumNumber
func (TestResults_BenchmarkType) String ¶ added in v0.4.0
func (x TestResults_BenchmarkType) String() string
func (TestResults_BenchmarkType) Type ¶ added in v0.4.0
func (TestResults_BenchmarkType) Type() protoreflect.EnumType
type WorkerPossiblyRestarted ¶ added in v0.4.0
type WorkerPossiblyRestarted struct {
// contains filtered or unexported fields
}
If included as a payload, this message flags the Status to be a possible outcome of a worker restart. URI: "type.googleapis.com/tensorflow.distributed_runtime.WorkerPossiblyRestarted"
func (*WorkerPossiblyRestarted) Descriptor
deprecated
added in
v0.4.0
func (*WorkerPossiblyRestarted) Descriptor() ([]byte, []int)
Deprecated: Use WorkerPossiblyRestarted.ProtoReflect.Descriptor instead.
func (*WorkerPossiblyRestarted) ProtoMessage ¶ added in v0.4.0
func (*WorkerPossiblyRestarted) ProtoMessage()
func (*WorkerPossiblyRestarted) ProtoReflect ¶ added in v0.4.0
func (x *WorkerPossiblyRestarted) ProtoReflect() protoreflect.Message
func (*WorkerPossiblyRestarted) Reset ¶ added in v0.4.0
func (x *WorkerPossiblyRestarted) Reset()
func (*WorkerPossiblyRestarted) String ¶ added in v0.4.0
func (x *WorkerPossiblyRestarted) String() string