util

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

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

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

Documentation

Overview

Package util is a generated protocol buffer package.

It is generated from these files:

tensorflow/core/util/event.proto
tensorflow/core/util/example_proto_fast_parsing_test.proto
tensorflow/core/util/memmapped_file_system.proto
tensorflow/core/util/saved_tensor_slice.proto
tensorflow/core/util/test_log.proto

It has these top-level messages:

Event
LogMessage
SessionLog
TaggedRunMetadata
ExampleWithExtras
MemmappedFileSystemDirectoryElement
MemmappedFileSystemDirectory
SavedSliceMeta
SavedTensorSliceMeta
SavedSlice
SavedTensorSlices
EntryValue
BenchmarkEntry
BenchmarkEntries
BuildConfiguration
CommitId
CPUInfo
MemoryInfo
GPUInfo
PlatformInfo
AvailableDeviceInfo
MachineConfiguration
RunConfiguration
TestResults

Index

Constants

This section is empty.

Variables

View Source
var LogMessage_Level_name = map[int32]string{
	0:  "UNKNOWN",
	10: "DEBUGGING",
	20: "INFO",
	30: "WARN",
	40: "ERROR",
	50: "FATAL",
}
View Source
var LogMessage_Level_value = map[string]int32{
	"UNKNOWN":   0,
	"DEBUGGING": 10,
	"INFO":      20,
	"WARN":      30,
	"ERROR":     40,
	"FATAL":     50,
}
View Source
var SessionLog_SessionStatus_name = map[int32]string{
	0: "STATUS_UNSPECIFIED",
	1: "START",
	2: "STOP",
	3: "CHECKPOINT",
}
View Source
var SessionLog_SessionStatus_value = map[string]int32{
	"STATUS_UNSPECIFIED": 0,
	"START":              1,
	"STOP":               2,
	"CHECKPOINT":         3,
}
View Source
var TestResults_BenchmarkType_name = map[int32]string{
	0: "UNKNOWN",
	1: "CPP_MICROBENCHMARK",
	2: "PYTHON_BENCHMARK",
	3: "ANDROID_BENCHMARK",
}
View Source
var TestResults_BenchmarkType_value = map[string]int32{
	"UNKNOWN":            0,
	"CPP_MICROBENCHMARK": 1,
	"PYTHON_BENCHMARK":   2,
	"ANDROID_BENCHMARK":  3,
}

Functions

This section is empty.

Types

type AvailableDeviceInfo

type AvailableDeviceInfo struct {
	Name                string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Type                string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
	MemoryLimit         int64  `protobuf:"varint,3,opt,name=memory_limit,json=memoryLimit" json:"memory_limit,omitempty"`
	PhysicalDescription string `protobuf:"bytes,4,opt,name=physical_description,json=physicalDescription" json:"physical_description,omitempty"`
}

func (*AvailableDeviceInfo) Descriptor

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

func (*AvailableDeviceInfo) GetMemoryLimit

func (m *AvailableDeviceInfo) GetMemoryLimit() int64

func (*AvailableDeviceInfo) GetName

func (m *AvailableDeviceInfo) GetName() string

func (*AvailableDeviceInfo) GetPhysicalDescription

func (m *AvailableDeviceInfo) GetPhysicalDescription() string

func (*AvailableDeviceInfo) GetType

func (m *AvailableDeviceInfo) GetType() string

func (*AvailableDeviceInfo) ProtoMessage

func (*AvailableDeviceInfo) ProtoMessage()

func (*AvailableDeviceInfo) Reset

func (m *AvailableDeviceInfo) Reset()

func (*AvailableDeviceInfo) String

func (m *AvailableDeviceInfo) String() string

type BenchmarkEntries

type BenchmarkEntries struct {
	Entry []*BenchmarkEntry `protobuf:"bytes,1,rep,name=entry" json:"entry,omitempty"`
}

func (*BenchmarkEntries) Descriptor

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

func (*BenchmarkEntries) GetEntry

func (m *BenchmarkEntries) GetEntry() []*BenchmarkEntry

func (*BenchmarkEntries) ProtoMessage

func (*BenchmarkEntries) ProtoMessage()

func (*BenchmarkEntries) Reset

func (m *BenchmarkEntries) Reset()

func (*BenchmarkEntries) String

func (m *BenchmarkEntries) String() string

type BenchmarkEntry

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" json:"name,omitempty"`
	// If a benchmark, how many iterations it was run for
	Iters int64 `protobuf:"varint,2,opt,name=iters" json:"iters,omitempty"`
	// Total cpu time used for all iterations (in seconds)
	CpuTime float64 `protobuf:"fixed64,3,opt,name=cpu_time,json=cpuTime" json:"cpu_time,omitempty"`
	// Total wall time used for all iterations (in seconds)
	WallTime float64 `protobuf:"fixed64,4,opt,name=wall_time,json=wallTime" json:"wall_time,omitempty"`
	// Throughput (in MB/s)
	Throughput float64 `protobuf:"fixed64,5,opt,name=throughput" json:"throughput,omitempty"`
	// Generic map from result key to value.
	Extras map[string]*EntryValue `` /* 132-byte string literal not displayed */
}

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

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

func (*BenchmarkEntry) GetCpuTime

func (m *BenchmarkEntry) GetCpuTime() float64

func (*BenchmarkEntry) GetExtras

func (m *BenchmarkEntry) GetExtras() map[string]*EntryValue

func (*BenchmarkEntry) GetIters

func (m *BenchmarkEntry) GetIters() int64

func (*BenchmarkEntry) GetName

func (m *BenchmarkEntry) GetName() string

func (*BenchmarkEntry) GetThroughput

func (m *BenchmarkEntry) GetThroughput() float64

func (*BenchmarkEntry) GetWallTime

func (m *BenchmarkEntry) GetWallTime() float64

func (*BenchmarkEntry) ProtoMessage

func (*BenchmarkEntry) ProtoMessage()

func (*BenchmarkEntry) Reset

func (m *BenchmarkEntry) Reset()

func (*BenchmarkEntry) String

func (m *BenchmarkEntry) String() string

type BuildConfiguration

type BuildConfiguration struct {
	Mode    string   `protobuf:"bytes,1,opt,name=mode" json:"mode,omitempty"`
	CcFlags []string `protobuf:"bytes,2,rep,name=cc_flags,json=ccFlags" json:"cc_flags,omitempty"`
	Opts    []string `protobuf:"bytes,3,rep,name=opts" json:"opts,omitempty"`
}

func (*BuildConfiguration) Descriptor

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

func (*BuildConfiguration) GetCcFlags

func (m *BuildConfiguration) GetCcFlags() []string

func (*BuildConfiguration) GetMode

func (m *BuildConfiguration) GetMode() string

func (*BuildConfiguration) GetOpts

func (m *BuildConfiguration) GetOpts() []string

func (*BuildConfiguration) ProtoMessage

func (*BuildConfiguration) ProtoMessage()

func (*BuildConfiguration) Reset

func (m *BuildConfiguration) Reset()

func (*BuildConfiguration) String

func (m *BuildConfiguration) String() string

type CPUInfo

type CPUInfo struct {
	NumCores        int64 `protobuf:"varint,1,opt,name=num_cores,json=numCores" json:"num_cores,omitempty"`
	NumCoresAllowed int64 `protobuf:"varint,2,opt,name=num_cores_allowed,json=numCoresAllowed" json:"num_cores_allowed,omitempty"`
	// How fast are these cpus?
	MhzPerCpu float64 `protobuf:"fixed64,3,opt,name=mhz_per_cpu,json=mhzPerCpu" 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" 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" json:"cpu_governor,omitempty"`
	// Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
	CacheSize map[string]int64 `` /* 156-byte string literal not displayed */
}

func (*CPUInfo) Descriptor

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

func (*CPUInfo) GetCacheSize

func (m *CPUInfo) GetCacheSize() map[string]int64

func (*CPUInfo) GetCpuGovernor

func (m *CPUInfo) GetCpuGovernor() string

func (*CPUInfo) GetCpuInfo

func (m *CPUInfo) GetCpuInfo() string

func (*CPUInfo) GetMhzPerCpu

func (m *CPUInfo) GetMhzPerCpu() float64

func (*CPUInfo) GetNumCores

func (m *CPUInfo) GetNumCores() int64

func (*CPUInfo) GetNumCoresAllowed

func (m *CPUInfo) GetNumCoresAllowed() int64

func (*CPUInfo) ProtoMessage

func (*CPUInfo) ProtoMessage()

func (*CPUInfo) Reset

func (m *CPUInfo) Reset()

func (*CPUInfo) String

func (m *CPUInfo) String() string

type CommitId

type CommitId struct {
	// Types that are valid to be assigned 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" json:"snapshot,omitempty"`
}

func (*CommitId) Descriptor

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

func (*CommitId) GetChangelist

func (m *CommitId) GetChangelist() int64

func (*CommitId) GetHash

func (m *CommitId) GetHash() string

func (*CommitId) GetKind

func (m *CommitId) GetKind() isCommitId_Kind

func (*CommitId) GetSnapshot

func (m *CommitId) GetSnapshot() string

func (*CommitId) ProtoMessage

func (*CommitId) ProtoMessage()

func (*CommitId) Reset

func (m *CommitId) Reset()

func (*CommitId) String

func (m *CommitId) String() string

func (*CommitId) XXX_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type CommitId_Changelist

type CommitId_Changelist struct {
	Changelist int64 `protobuf:"varint,1,opt,name=changelist,oneof"`
}

type CommitId_Hash

type CommitId_Hash struct {
	Hash string `protobuf:"bytes,2,opt,name=hash,oneof"`
}

type EntryValue

type EntryValue struct {
	// Types that are valid to be assigned to Kind:
	//	*EntryValue_DoubleValue
	//	*EntryValue_StringValue
	Kind isEntryValue_Kind `protobuf_oneof:"kind"`
}

func (*EntryValue) Descriptor

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

func (*EntryValue) GetDoubleValue

func (m *EntryValue) GetDoubleValue() float64

func (*EntryValue) GetKind

func (m *EntryValue) GetKind() isEntryValue_Kind

func (*EntryValue) GetStringValue

func (m *EntryValue) GetStringValue() string

func (*EntryValue) ProtoMessage

func (*EntryValue) ProtoMessage()

func (*EntryValue) Reset

func (m *EntryValue) Reset()

func (*EntryValue) String

func (m *EntryValue) String() string

func (*EntryValue) XXX_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type EntryValue_DoubleValue

type EntryValue_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,1,opt,name=double_value,json=doubleValue,oneof"`
}

type EntryValue_StringValue

type EntryValue_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,oneof"`
}

type Event

type Event struct {
	// Timestamp of the event.
	WallTime float64 `protobuf:"fixed64,1,opt,name=wall_time,json=wallTime" json:"wall_time,omitempty"`
	// Global step of the event.
	Step int64 `protobuf:"varint,2,opt,name=step" json:"step,omitempty"`
	// Types that are valid to be assigned to What:
	//	*Event_FileVersion
	//	*Event_GraphDef
	//	*Event_Summary
	//	*Event_LogMessage
	//	*Event_SessionLog
	//	*Event_TaggedRunMetadata
	//	*Event_MetaGraphDef
	What isEvent_What `protobuf_oneof:"what"`
}

Protocol buffer representing an event that happened during the execution of a Brain model.

func (*Event) Descriptor

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

func (*Event) GetFileVersion

func (m *Event) GetFileVersion() string

func (*Event) GetGraphDef

func (m *Event) GetGraphDef() []byte

func (*Event) GetLogMessage

func (m *Event) GetLogMessage() *LogMessage

func (*Event) GetMetaGraphDef

func (m *Event) GetMetaGraphDef() []byte

func (*Event) GetSessionLog

func (m *Event) GetSessionLog() *SessionLog

func (*Event) GetStep

func (m *Event) GetStep() int64

func (*Event) GetSummary

func (m *Event) GetSummary() *tensorflow4.Summary

func (*Event) GetTaggedRunMetadata

func (m *Event) GetTaggedRunMetadata() *TaggedRunMetadata

func (*Event) GetWallTime

func (m *Event) GetWallTime() float64

func (*Event) GetWhat

func (m *Event) GetWhat() isEvent_What

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type Event_FileVersion

type Event_FileVersion struct {
	FileVersion string `protobuf:"bytes,3,opt,name=file_version,json=fileVersion,oneof"`
}

type Event_GraphDef

type Event_GraphDef struct {
	GraphDef []byte `protobuf:"bytes,4,opt,name=graph_def,json=graphDef,proto3,oneof"`
}

type Event_LogMessage

type Event_LogMessage struct {
	LogMessage *LogMessage `protobuf:"bytes,6,opt,name=log_message,json=logMessage,oneof"`
}

type Event_MetaGraphDef

type Event_MetaGraphDef struct {
	MetaGraphDef []byte `protobuf:"bytes,9,opt,name=meta_graph_def,json=metaGraphDef,proto3,oneof"`
}

type Event_SessionLog

type Event_SessionLog struct {
	SessionLog *SessionLog `protobuf:"bytes,7,opt,name=session_log,json=sessionLog,oneof"`
}

type Event_Summary

type Event_Summary struct {
	Summary *tensorflow4.Summary `protobuf:"bytes,5,opt,name=summary,oneof"`
}

type Event_TaggedRunMetadata

type Event_TaggedRunMetadata struct {
	TaggedRunMetadata *TaggedRunMetadata `protobuf:"bytes,8,opt,name=tagged_run_metadata,json=taggedRunMetadata,oneof"`
}

type ExampleWithExtras

type ExampleWithExtras struct {
	Features *tensorflow5.Features `protobuf:"bytes,1,opt,name=features" json:"features,omitempty"`
	Extra1   string                `protobuf:"bytes,1337,opt,name=extra1" json:"extra1,omitempty"`
	Extra2   int64                 `protobuf:"varint,1338,opt,name=extra2" json:"extra2,omitempty"`
	Extra3   uint32                `protobuf:"fixed32,1339,opt,name=extra3" json:"extra3,omitempty"`
	Extra4   uint64                `protobuf:"fixed64,1340,opt,name=extra4" json:"extra4,omitempty"`
	Extra5   float64               `protobuf:"fixed64,1341,opt,name=extra5" json:"extra5,omitempty"`
	Extra6   []float32             `protobuf:"fixed32,1342,rep,packed,name=extra6" json:"extra6,omitempty"`
	Extra7   *tensorflow5.Features `protobuf:"bytes,1343,opt,name=extra7" json:"extra7,omitempty"`
}

This message is parallel to Example, but with additional fields to test unknown fields handling in example_proto_fast_parsing_test.cc.

func (*ExampleWithExtras) Descriptor

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

func (*ExampleWithExtras) GetExtra1

func (m *ExampleWithExtras) GetExtra1() string

func (*ExampleWithExtras) GetExtra2

func (m *ExampleWithExtras) GetExtra2() int64

func (*ExampleWithExtras) GetExtra3

func (m *ExampleWithExtras) GetExtra3() uint32

func (*ExampleWithExtras) GetExtra4

func (m *ExampleWithExtras) GetExtra4() uint64

func (*ExampleWithExtras) GetExtra5

func (m *ExampleWithExtras) GetExtra5() float64

func (*ExampleWithExtras) GetExtra6

func (m *ExampleWithExtras) GetExtra6() []float32

func (*ExampleWithExtras) GetExtra7

func (m *ExampleWithExtras) GetExtra7() *tensorflow5.Features

func (*ExampleWithExtras) GetFeatures

func (m *ExampleWithExtras) GetFeatures() *tensorflow5.Features

func (*ExampleWithExtras) ProtoMessage

func (*ExampleWithExtras) ProtoMessage()

func (*ExampleWithExtras) Reset

func (m *ExampleWithExtras) Reset()

func (*ExampleWithExtras) String

func (m *ExampleWithExtras) String() string

type GPUInfo

type GPUInfo struct {
	Model string `protobuf:"bytes,1,opt,name=model" json:"model,omitempty"`
	Uuid  string `protobuf:"bytes,2,opt,name=uuid" json:"uuid,omitempty"`
	BusId string `protobuf:"bytes,3,opt,name=bus_id,json=busId" json:"bus_id,omitempty"`
}

func (*GPUInfo) Descriptor

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

func (*GPUInfo) GetBusId

func (m *GPUInfo) GetBusId() string

func (*GPUInfo) GetModel

func (m *GPUInfo) GetModel() string

func (*GPUInfo) GetUuid

func (m *GPUInfo) GetUuid() string

func (*GPUInfo) ProtoMessage

func (*GPUInfo) ProtoMessage()

func (*GPUInfo) Reset

func (m *GPUInfo) Reset()

func (*GPUInfo) String

func (m *GPUInfo) String() string

type LogMessage

type LogMessage struct {
	Level   LogMessage_Level `protobuf:"varint,1,opt,name=level,enum=tensorflow.LogMessage_Level" json:"level,omitempty"`
	Message string           `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
}

Protocol buffer used for logging messages to the events file.

func (*LogMessage) Descriptor

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

func (*LogMessage) GetLevel

func (m *LogMessage) GetLevel() LogMessage_Level

func (*LogMessage) GetMessage

func (m *LogMessage) GetMessage() string

func (*LogMessage) ProtoMessage

func (*LogMessage) ProtoMessage()

func (*LogMessage) Reset

func (m *LogMessage) Reset()

func (*LogMessage) String

func (m *LogMessage) String() string

type LogMessage_Level

type LogMessage_Level int32
const (
	LogMessage_UNKNOWN LogMessage_Level = 0
	// Note: The logging level 10 cannot be named DEBUG. Some software
	// projects compile their C/C++ code with -DDEBUG in debug builds. So the
	// C++ code generated from this file should not have an identifier named
	// DEBUG.
	LogMessage_DEBUGGING LogMessage_Level = 10
	LogMessage_INFO      LogMessage_Level = 20
	LogMessage_WARN      LogMessage_Level = 30
	LogMessage_ERROR     LogMessage_Level = 40
	LogMessage_FATAL     LogMessage_Level = 50
)

func (LogMessage_Level) EnumDescriptor

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

func (LogMessage_Level) String

func (x LogMessage_Level) String() string

type MachineConfiguration

type MachineConfiguration struct {
	// Host name of machine that ran the benchmark.
	Hostname string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"`
	// Unique serial number of the machine.
	SerialIdentifier string `protobuf:"bytes,7,opt,name=serial_identifier,json=serialIdentifier" json:"serial_identifier,omitempty"`
	// Additional platform information.
	PlatformInfo *PlatformInfo `protobuf:"bytes,2,opt,name=platform_info,json=platformInfo" json:"platform_info,omitempty"`
	// CPU Information.
	CpuInfo *CPUInfo `protobuf:"bytes,3,opt,name=cpu_info,json=cpuInfo" json:"cpu_info,omitempty"`
	// Other devices that are attached and relevant (e.g. GPUInfo).
	DeviceInfo []*google_protobuf.Any `protobuf:"bytes,4,rep,name=device_info,json=deviceInfo" 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" json:"available_device_info,omitempty"`
	MemoryInfo          *MemoryInfo            `protobuf:"bytes,6,opt,name=memory_info,json=memoryInfo" json:"memory_info,omitempty"`
}

func (*MachineConfiguration) Descriptor

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

func (*MachineConfiguration) GetAvailableDeviceInfo

func (m *MachineConfiguration) GetAvailableDeviceInfo() []*AvailableDeviceInfo

func (*MachineConfiguration) GetCpuInfo

func (m *MachineConfiguration) GetCpuInfo() *CPUInfo

func (*MachineConfiguration) GetDeviceInfo

func (m *MachineConfiguration) GetDeviceInfo() []*google_protobuf.Any

func (*MachineConfiguration) GetHostname

func (m *MachineConfiguration) GetHostname() string

func (*MachineConfiguration) GetMemoryInfo

func (m *MachineConfiguration) GetMemoryInfo() *MemoryInfo

func (*MachineConfiguration) GetPlatformInfo

func (m *MachineConfiguration) GetPlatformInfo() *PlatformInfo

func (*MachineConfiguration) GetSerialIdentifier

func (m *MachineConfiguration) GetSerialIdentifier() string

func (*MachineConfiguration) ProtoMessage

func (*MachineConfiguration) ProtoMessage()

func (*MachineConfiguration) Reset

func (m *MachineConfiguration) Reset()

func (*MachineConfiguration) String

func (m *MachineConfiguration) String() string

type MemmappedFileSystemDirectory

type MemmappedFileSystemDirectory struct {
	Element []*MemmappedFileSystemDirectoryElement `protobuf:"bytes,1,rep,name=element" json:"element,omitempty"`
}

A directory of regions in a memmapped file.

func (*MemmappedFileSystemDirectory) Descriptor

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

func (*MemmappedFileSystemDirectory) GetElement

func (*MemmappedFileSystemDirectory) ProtoMessage

func (*MemmappedFileSystemDirectory) ProtoMessage()

func (*MemmappedFileSystemDirectory) Reset

func (m *MemmappedFileSystemDirectory) Reset()

func (*MemmappedFileSystemDirectory) String

type MemmappedFileSystemDirectoryElement

type MemmappedFileSystemDirectoryElement struct {
	Offset uint64 `protobuf:"varint,1,opt,name=offset" json:"offset,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

A message that describes one region of memmapped file.

func (*MemmappedFileSystemDirectoryElement) Descriptor

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

func (*MemmappedFileSystemDirectoryElement) GetName

func (*MemmappedFileSystemDirectoryElement) GetOffset

func (*MemmappedFileSystemDirectoryElement) ProtoMessage

func (*MemmappedFileSystemDirectoryElement) ProtoMessage()

func (*MemmappedFileSystemDirectoryElement) Reset

func (*MemmappedFileSystemDirectoryElement) String

type MemoryInfo

type MemoryInfo struct {
	Total     int64 `protobuf:"varint,1,opt,name=total" json:"total,omitempty"`
	Available int64 `protobuf:"varint,2,opt,name=available" json:"available,omitempty"`
}

func (*MemoryInfo) Descriptor

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

func (*MemoryInfo) GetAvailable

func (m *MemoryInfo) GetAvailable() int64

func (*MemoryInfo) GetTotal

func (m *MemoryInfo) GetTotal() int64

func (*MemoryInfo) ProtoMessage

func (*MemoryInfo) ProtoMessage()

func (*MemoryInfo) Reset

func (m *MemoryInfo) Reset()

func (*MemoryInfo) String

func (m *MemoryInfo) String() string

type PlatformInfo

type PlatformInfo struct {
	Bits    string `protobuf:"bytes,1,opt,name=bits" json:"bits,omitempty"`
	Linkage string `protobuf:"bytes,2,opt,name=linkage" json:"linkage,omitempty"`
	Machine string `protobuf:"bytes,3,opt,name=machine" json:"machine,omitempty"`
	Release string `protobuf:"bytes,4,opt,name=release" json:"release,omitempty"`
	System  string `protobuf:"bytes,5,opt,name=system" json:"system,omitempty"`
	Version string `protobuf:"bytes,6,opt,name=version" json:"version,omitempty"`
}

func (*PlatformInfo) Descriptor

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

func (*PlatformInfo) GetBits

func (m *PlatformInfo) GetBits() string

func (*PlatformInfo) GetLinkage

func (m *PlatformInfo) GetLinkage() string

func (*PlatformInfo) GetMachine

func (m *PlatformInfo) GetMachine() string

func (*PlatformInfo) GetRelease

func (m *PlatformInfo) GetRelease() string

func (*PlatformInfo) GetSystem

func (m *PlatformInfo) GetSystem() string

func (*PlatformInfo) GetVersion

func (m *PlatformInfo) GetVersion() string

func (*PlatformInfo) ProtoMessage

func (*PlatformInfo) ProtoMessage()

func (*PlatformInfo) Reset

func (m *PlatformInfo) Reset()

func (*PlatformInfo) String

func (m *PlatformInfo) String() string

type RunConfiguration

type RunConfiguration struct {
	Argument []string `protobuf:"bytes,1,rep,name=argument" json:"argument,omitempty"`
}

Run-specific items such as arguments to the test / benchmark.

func (*RunConfiguration) Descriptor

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

func (*RunConfiguration) GetArgument

func (m *RunConfiguration) GetArgument() []string

func (*RunConfiguration) ProtoMessage

func (*RunConfiguration) ProtoMessage()

func (*RunConfiguration) Reset

func (m *RunConfiguration) Reset()

func (*RunConfiguration) String

func (m *RunConfiguration) String() string

type SavedSlice

type SavedSlice struct {
	// Name of the tensor that this slice belongs to. This must be identical to
	// the name used to encode the key for this record.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Extent of the slice.  Must have one entry for each of the dimension of the
	// tensor that this slice belongs to.
	Slice *tensorflow6.TensorSliceProto `protobuf:"bytes,2,opt,name=slice" json:"slice,omitempty"`
	// The raw data of the slice is stored as a TensorProto. Only raw data are
	// stored (we don't fill in fields such as dtype or tensor_shape).
	Data *tensorflow3.TensorProto `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"`
}

Saved tensor slice: it stores the name of the tensors, the slice, and the raw data.

func (*SavedSlice) Descriptor

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

func (*SavedSlice) GetData

func (m *SavedSlice) GetData() *tensorflow3.TensorProto

func (*SavedSlice) GetName

func (m *SavedSlice) GetName() string

func (*SavedSlice) GetSlice

func (m *SavedSlice) GetSlice() *tensorflow6.TensorSliceProto

func (*SavedSlice) ProtoMessage

func (*SavedSlice) ProtoMessage()

func (*SavedSlice) Reset

func (m *SavedSlice) Reset()

func (*SavedSlice) String

func (m *SavedSlice) String() string

type SavedSliceMeta

type SavedSliceMeta struct {
	// Name of the tensor.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Shape of the tensor
	Shape *tensorflow1.TensorShapeProto `protobuf:"bytes,2,opt,name=shape" json:"shape,omitempty"`
	// Type of the tensor
	Type tensorflow2.DataType `protobuf:"varint,3,opt,name=type,enum=tensorflow.DataType" json:"type,omitempty"`
	// Explicit list of slices saved in the checkpoint file.
	Slice []*tensorflow6.TensorSliceProto `protobuf:"bytes,4,rep,name=slice" json:"slice,omitempty"`
}

Metadata describing the set of slices of the same tensor saved in a checkpoint file.

func (*SavedSliceMeta) Descriptor

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

func (*SavedSliceMeta) GetName

func (m *SavedSliceMeta) GetName() string

func (*SavedSliceMeta) GetShape

func (*SavedSliceMeta) GetSlice

func (m *SavedSliceMeta) GetSlice() []*tensorflow6.TensorSliceProto

func (*SavedSliceMeta) GetType

func (m *SavedSliceMeta) GetType() tensorflow2.DataType

func (*SavedSliceMeta) ProtoMessage

func (*SavedSliceMeta) ProtoMessage()

func (*SavedSliceMeta) Reset

func (m *SavedSliceMeta) Reset()

func (*SavedSliceMeta) String

func (m *SavedSliceMeta) String() string

type SavedTensorSliceMeta

type SavedTensorSliceMeta struct {
	// Each SavedSliceMeta describes the slices for one tensor.
	Tensor []*SavedSliceMeta `protobuf:"bytes,1,rep,name=tensor" json:"tensor,omitempty"`
	// Compatibility version of this checkpoint.  See core/public/version.h
	// for version history.
	Versions *tensorflow7.VersionDef `protobuf:"bytes,2,opt,name=versions" json:"versions,omitempty"`
}

Metadata describing the set of tensor slices saved in a checkpoint file. It is always stored at the beginning of each checkpoint file.

func (*SavedTensorSliceMeta) Descriptor

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

func (*SavedTensorSliceMeta) GetTensor

func (m *SavedTensorSliceMeta) GetTensor() []*SavedSliceMeta

func (*SavedTensorSliceMeta) GetVersions

func (m *SavedTensorSliceMeta) GetVersions() *tensorflow7.VersionDef

func (*SavedTensorSliceMeta) ProtoMessage

func (*SavedTensorSliceMeta) ProtoMessage()

func (*SavedTensorSliceMeta) Reset

func (m *SavedTensorSliceMeta) Reset()

func (*SavedTensorSliceMeta) String

func (m *SavedTensorSliceMeta) String() string

type SavedTensorSlices

type SavedTensorSlices struct {
	// This is only present at the first item of each checkpoint file and serves
	// as a table of contents, listing all the tensor slices saved in this file.
	Meta *SavedTensorSliceMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"`
	// This exists in all but the first item of each checkpoint file.
	Data *SavedSlice `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
}

Each record in a v3 checkpoint file is a serialized SavedTensorSlices message.

func (*SavedTensorSlices) Descriptor

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

func (*SavedTensorSlices) GetData

func (m *SavedTensorSlices) GetData() *SavedSlice

func (*SavedTensorSlices) GetMeta

func (*SavedTensorSlices) ProtoMessage

func (*SavedTensorSlices) ProtoMessage()

func (*SavedTensorSlices) Reset

func (m *SavedTensorSlices) Reset()

func (*SavedTensorSlices) String

func (m *SavedTensorSlices) String() string

type SessionLog

type SessionLog struct {
	Status SessionLog_SessionStatus `protobuf:"varint,1,opt,name=status,enum=tensorflow.SessionLog_SessionStatus" json:"status,omitempty"`
	// This checkpoint_path contains both the path and filename.
	CheckpointPath string `protobuf:"bytes,2,opt,name=checkpoint_path,json=checkpointPath" json:"checkpoint_path,omitempty"`
	Msg            string `protobuf:"bytes,3,opt,name=msg" json:"msg,omitempty"`
}

Protocol buffer used for logging session state.

func (*SessionLog) Descriptor

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

func (*SessionLog) GetCheckpointPath

func (m *SessionLog) GetCheckpointPath() string

func (*SessionLog) GetMsg

func (m *SessionLog) GetMsg() string

func (*SessionLog) GetStatus

func (m *SessionLog) GetStatus() SessionLog_SessionStatus

func (*SessionLog) ProtoMessage

func (*SessionLog) ProtoMessage()

func (*SessionLog) Reset

func (m *SessionLog) Reset()

func (*SessionLog) String

func (m *SessionLog) String() string

type SessionLog_SessionStatus

type SessionLog_SessionStatus int32
const (
	SessionLog_STATUS_UNSPECIFIED SessionLog_SessionStatus = 0
	SessionLog_START              SessionLog_SessionStatus = 1
	SessionLog_STOP               SessionLog_SessionStatus = 2
	SessionLog_CHECKPOINT         SessionLog_SessionStatus = 3
)

func (SessionLog_SessionStatus) EnumDescriptor

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

func (SessionLog_SessionStatus) String

func (x SessionLog_SessionStatus) String() string

type TaggedRunMetadata

type TaggedRunMetadata struct {
	// Tag name associated with this metadata.
	Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
	// Byte-encoded version of the `RunMetadata` proto in order to allow lazy
	// deserialization.
	RunMetadata []byte `protobuf:"bytes,2,opt,name=run_metadata,json=runMetadata,proto3" json:"run_metadata,omitempty"`
}

For logging the metadata output for a single session.run() call.

func (*TaggedRunMetadata) Descriptor

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

func (*TaggedRunMetadata) GetRunMetadata

func (m *TaggedRunMetadata) GetRunMetadata() []byte

func (*TaggedRunMetadata) GetTag

func (m *TaggedRunMetadata) GetTag() string

func (*TaggedRunMetadata) ProtoMessage

func (*TaggedRunMetadata) ProtoMessage()

func (*TaggedRunMetadata) Reset

func (m *TaggedRunMetadata) Reset()

func (*TaggedRunMetadata) String

func (m *TaggedRunMetadata) String() string

type TestResults

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" json:"target,omitempty"`
	// The list of tests or benchmarks in this run.
	Entries *BenchmarkEntries `protobuf:"bytes,2,opt,name=entries" 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" json:"build_configuration,omitempty"`
	// The commit id (git hash or changelist)
	CommitId *CommitId `protobuf:"bytes,4,opt,name=commit_id,json=commitId" 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" 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" json:"run_time,omitempty"`
	// Machine-specific parameters (Platform and CPU info)
	MachineConfiguration *MachineConfiguration `protobuf:"bytes,7,opt,name=machine_configuration,json=machineConfiguration" json:"machine_configuration,omitempty"`
	// Run-specific parameters (arguments, etc)
	RunConfiguration *RunConfiguration `protobuf:"bytes,8,opt,name=run_configuration,json=runConfiguration" json:"run_configuration,omitempty"`
	// Benchmark target identifier.
	Name          string                    `protobuf:"bytes,9,opt,name=name" json:"name,omitempty"`
	BenchmarkType TestResults_BenchmarkType `` /* 137-byte string literal not displayed */
	// Used for differentiating between continuous and debug builds.
	RunMode string `protobuf:"bytes,11,opt,name=run_mode,json=runMode" json:"run_mode,omitempty"`
}

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

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

func (*TestResults) GetBenchmarkType

func (m *TestResults) GetBenchmarkType() TestResults_BenchmarkType

func (*TestResults) GetBuildConfiguration

func (m *TestResults) GetBuildConfiguration() *BuildConfiguration

func (*TestResults) GetCommitId

func (m *TestResults) GetCommitId() *CommitId

func (*TestResults) GetEntries

func (m *TestResults) GetEntries() *BenchmarkEntries

func (*TestResults) GetMachineConfiguration

func (m *TestResults) GetMachineConfiguration() *MachineConfiguration

func (*TestResults) GetName

func (m *TestResults) GetName() string

func (*TestResults) GetRunConfiguration

func (m *TestResults) GetRunConfiguration() *RunConfiguration

func (*TestResults) GetRunMode

func (m *TestResults) GetRunMode() string

func (*TestResults) GetRunTime

func (m *TestResults) GetRunTime() float64

func (*TestResults) GetStartTime

func (m *TestResults) GetStartTime() int64

func (*TestResults) GetTarget

func (m *TestResults) GetTarget() string

func (*TestResults) ProtoMessage

func (*TestResults) ProtoMessage()

func (*TestResults) Reset

func (m *TestResults) Reset()

func (*TestResults) String

func (m *TestResults) String() string

type TestResults_BenchmarkType

type TestResults_BenchmarkType int32

The type of benchmark.

const (
	TestResults_UNKNOWN            TestResults_BenchmarkType = 0
	TestResults_CPP_MICROBENCHMARK TestResults_BenchmarkType = 1
	TestResults_PYTHON_BENCHMARK   TestResults_BenchmarkType = 2
	TestResults_ANDROID_BENCHMARK  TestResults_BenchmarkType = 3
)

func (TestResults_BenchmarkType) EnumDescriptor

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

func (TestResults_BenchmarkType) String

func (x TestResults_BenchmarkType) String() string

Jump to

Keyboard shortcuts

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