util

package
v2.14.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TestResults_ANDROID_BENCHMARK = protobuf.TestResults_ANDROID_BENCHMARK
View Source
const TestResults_CPP_MICROBENCHMARK = protobuf.TestResults_CPP_MICROBENCHMARK
View Source
const TestResults_EDGE_BENCHMARK = protobuf.TestResults_EDGE_BENCHMARK
View Source
const TestResults_IOS_BENCHMARK = protobuf.TestResults_IOS_BENCHMARK
View Source
const TestResults_PYTHON_BENCHMARK = protobuf.TestResults_PYTHON_BENCHMARK
View Source
const TestResults_UNKNOWN = protobuf.TestResults_UNKNOWN

Variables

View Source
var (
	WorkerHealth_name = map[int32]string{
		0: "OK",
		1: "RECEIVED_SHUTDOWN_SIGNAL",
		2: "INTERNAL_ERROR",
		3: "SHUTTING_DOWN",
	}
	WorkerHealth_value = map[string]int32{
		"OK":                       0,
		"RECEIVED_SHUTDOWN_SIGNAL": 1,
		"INTERNAL_ERROR":           2,
		"SHUTTING_DOWN":            3,
	}
)

Enum value maps for WorkerHealth.

View Source
var (
	WorkerShutdownMode_name = map[int32]string{
		0: "DEFAULT",
		1: "NOT_CONFIGURED",
		2: "WAIT_FOR_COORDINATOR",
		3: "SHUTDOWN_AFTER_TIMEOUT",
	}
	WorkerShutdownMode_value = map[string]int32{
		"DEFAULT":                0,
		"NOT_CONFIGURED":         1,
		"WAIT_FOR_COORDINATOR":   2,
		"SHUTDOWN_AFTER_TIMEOUT": 3,
	}
)

Enum value maps for WorkerShutdownMode.

View Source
var (
	LogMessage_Level_name = map[int32]string{
		0:  "UNKNOWN",
		10: "DEBUGGING",
		20: "INFO",
		30: "WARN",
		40: "ERROR",
		50: "FATAL",
	}
	LogMessage_Level_value = map[string]int32{
		"UNKNOWN":   0,
		"DEBUGGING": 10,
		"INFO":      20,
		"WARN":      30,
		"ERROR":     40,
		"FATAL":     50,
	}
)

Enum value maps for LogMessage_Level.

View Source
var (
	SessionLog_SessionStatus_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "START",
		2: "STOP",
		3: "CHECKPOINT",
	}
	SessionLog_SessionStatus_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"START":              1,
		"STOP":               2,
		"CHECKPOINT":         3,
	}
)

Enum value maps for SessionLog_SessionStatus.

View Source
var File_tensorflow_core_util_event_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_util_example_proto_fast_parsing_test_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_util_memmapped_file_system_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_util_saved_tensor_slice_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_core_util_test_log_proto protoreflect.FileDescriptor
View Source
var TestResults_BenchmarkType_name = protobuf.TestResults_BenchmarkType_name
View Source
var TestResults_BenchmarkType_value = protobuf.TestResults_BenchmarkType_value

Functions

This section is empty.

Types

type AvailableDeviceInfo

type AvailableDeviceInfo = protobuf.AvailableDeviceInfo

type BenchmarkEntries

type BenchmarkEntries = protobuf.BenchmarkEntries

type BenchmarkEntry

type BenchmarkEntry = protobuf.BenchmarkEntry

type BuildConfiguration

type BuildConfiguration = protobuf.BuildConfiguration

type CPUInfo

type CPUInfo = protobuf.CPUInfo

type CommitId

type CommitId = protobuf.CommitId

type CommitId_Changelist

type CommitId_Changelist = protobuf.CommitId_Changelist

type CommitId_Hash

type CommitId_Hash = protobuf.CommitId_Hash

type EntryValue

type EntryValue = protobuf.EntryValue

type EntryValue_DoubleValue

type EntryValue_DoubleValue = protobuf.EntryValue_DoubleValue

type EntryValue_StringValue

type EntryValue_StringValue = protobuf.EntryValue_StringValue

type Event

type Event struct {

	// Timestamp of the event.
	WallTime float64 `protobuf:"fixed64,1,opt,name=wall_time,json=wallTime,proto3" json:"wall_time,omitempty"`
	// Global step of the event.
	Step int64 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
	// Types that are assignable to What:
	//
	//	*Event_FileVersion
	//	*Event_GraphDef
	//	*Event_Summary
	//	*Event_LogMessage
	//	*Event_SessionLog
	//	*Event_TaggedRunMetadata
	//	*Event_MetaGraphDef
	What isEvent_What `protobuf_oneof:"what"`
	// Information of the source that writes the events, this is only logged in
	// the very first event along with the `file_version` field.
	SourceMetadata *SourceMetadata `protobuf:"bytes,10,opt,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetFileVersion

func (x *Event) GetFileVersion() string

func (*Event) GetGraphDef

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

func (*Event) GetLogMessage deprecated

func (x *Event) GetLogMessage() *LogMessage

Deprecated: Marked as deprecated in tensorflow/core/util/event.proto.

func (*Event) GetMetaGraphDef

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

func (*Event) GetSessionLog

func (x *Event) GetSessionLog() *SessionLog

func (*Event) GetSourceMetadata added in v2.12.0

func (x *Event) GetSourceMetadata() *SourceMetadata

func (*Event) GetStep

func (x *Event) GetStep() int64

func (*Event) GetSummary

func (x *Event) GetSummary() *framework.Summary

func (*Event) GetTaggedRunMetadata

func (x *Event) GetTaggedRunMetadata() *TaggedRunMetadata

func (*Event) GetWallTime

func (x *Event) GetWallTime() float64

func (*Event) GetWhat

func (m *Event) GetWhat() isEvent_What

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Event_FileVersion

type Event_FileVersion struct {
	// An event file was started, with the specified version.
	// This is use to identify the contents of the record IO files
	// easily.  Current version is "brain.Event:2".  All versions
	// start with "brain.Event:".
	FileVersion string `protobuf:"bytes,3,opt,name=file_version,json=fileVersion,proto3,oneof"`
}

type Event_GraphDef

type Event_GraphDef struct {
	// An encoded version of a GraphDef.
	GraphDef []byte `protobuf:"bytes,4,opt,name=graph_def,json=graphDef,proto3,oneof"`
}

type Event_LogMessage

type Event_LogMessage struct {
	// The user output a log message. This was theoretically used by the defunct
	// tensorboard_logging module, which has since been removed; this field is
	// now deprecated and should not be used.
	//
	// Deprecated: Marked as deprecated in tensorflow/core/util/event.proto.
	LogMessage *LogMessage `protobuf:"bytes,6,opt,name=log_message,json=logMessage,proto3,oneof"`
}

type Event_MetaGraphDef

type Event_MetaGraphDef struct {
	// An encoded version of a MetaGraphDef.
	MetaGraphDef []byte `protobuf:"bytes,9,opt,name=meta_graph_def,json=metaGraphDef,proto3,oneof"`
}

type Event_SessionLog

type Event_SessionLog struct {
	// The state of the session which can be used for restarting after crashes.
	SessionLog *SessionLog `protobuf:"bytes,7,opt,name=session_log,json=sessionLog,proto3,oneof"`
}

type Event_Summary

type Event_Summary struct {
	// A summary was generated.
	Summary *framework.Summary `protobuf:"bytes,5,opt,name=summary,proto3,oneof"`
}

type Event_TaggedRunMetadata

type Event_TaggedRunMetadata struct {
	// The metadata returned by running a session.run() call.
	TaggedRunMetadata *TaggedRunMetadata `protobuf:"bytes,8,opt,name=tagged_run_metadata,json=taggedRunMetadata,proto3,oneof"`
}

type ExampleWithExtras

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

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 deprecated

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

Deprecated: Use ExampleWithExtras.ProtoReflect.Descriptor instead.

func (*ExampleWithExtras) GetExtra1

func (x *ExampleWithExtras) GetExtra1() string

func (*ExampleWithExtras) GetExtra2

func (x *ExampleWithExtras) GetExtra2() int64

func (*ExampleWithExtras) GetExtra3

func (x *ExampleWithExtras) GetExtra3() uint32

func (*ExampleWithExtras) GetExtra4

func (x *ExampleWithExtras) GetExtra4() uint64

func (*ExampleWithExtras) GetExtra5

func (x *ExampleWithExtras) GetExtra5() float64

func (*ExampleWithExtras) GetExtra6

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

func (*ExampleWithExtras) GetExtra7

func (x *ExampleWithExtras) GetExtra7() *example.Features

func (*ExampleWithExtras) GetFeatures

func (x *ExampleWithExtras) GetFeatures() *example.Features

func (*ExampleWithExtras) ProtoMessage

func (*ExampleWithExtras) ProtoMessage()

func (*ExampleWithExtras) ProtoReflect

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

func (*ExampleWithExtras) Reset

func (x *ExampleWithExtras) Reset()

func (*ExampleWithExtras) String

func (x *ExampleWithExtras) String() string

type GPUInfo

type GPUInfo = protobuf.GPUInfo

type LogMessage deprecated

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

Protocol buffer used for logging messages to the events file.

This was theoretically used by the defunct tensorboard_logging module, which has been removed; this message is now deprecated and should not be used.

Deprecated: Marked as deprecated in tensorflow/core/util/event.proto.

func (*LogMessage) Descriptor deprecated

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

Deprecated: Use LogMessage.ProtoReflect.Descriptor instead.

func (*LogMessage) GetLevel

func (x *LogMessage) GetLevel() LogMessage_Level

func (*LogMessage) GetMessage

func (x *LogMessage) GetMessage() string

func (*LogMessage) ProtoMessage

func (*LogMessage) ProtoMessage()

func (*LogMessage) ProtoReflect

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

func (*LogMessage) Reset

func (x *LogMessage) Reset()

func (*LogMessage) String

func (x *LogMessage) String() string

type LogMessage_Level deprecated

type LogMessage_Level int32

Deprecated: Marked as deprecated in tensorflow/core/util/event.proto.

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) Descriptor

func (LogMessage_Level) Enum

func (LogMessage_Level) EnumDescriptor deprecated

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

Deprecated: Use LogMessage_Level.Descriptor instead.

func (LogMessage_Level) Number

func (LogMessage_Level) String

func (x LogMessage_Level) String() string

func (LogMessage_Level) Type

type MachineConfiguration

type MachineConfiguration = protobuf.MachineConfiguration

type MemmappedFileSystemDirectory

type MemmappedFileSystemDirectory struct {
	Element []*MemmappedFileSystemDirectoryElement `protobuf:"bytes,1,rep,name=element,proto3" json:"element,omitempty"`
	// contains filtered or unexported fields
}

A directory of regions in a memmapped file.

func (*MemmappedFileSystemDirectory) Descriptor deprecated

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

Deprecated: Use MemmappedFileSystemDirectory.ProtoReflect.Descriptor instead.

func (*MemmappedFileSystemDirectory) GetElement

func (*MemmappedFileSystemDirectory) ProtoMessage

func (*MemmappedFileSystemDirectory) ProtoMessage()

func (*MemmappedFileSystemDirectory) ProtoReflect

func (*MemmappedFileSystemDirectory) Reset

func (x *MemmappedFileSystemDirectory) Reset()

func (*MemmappedFileSystemDirectory) String

type MemmappedFileSystemDirectoryElement

type MemmappedFileSystemDirectoryElement struct {
	Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Length uint64 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`
	// contains filtered or unexported fields
}

A message that describes one region of memmapped file.

func (*MemmappedFileSystemDirectoryElement) Descriptor deprecated

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

Deprecated: Use MemmappedFileSystemDirectoryElement.ProtoReflect.Descriptor instead.

func (*MemmappedFileSystemDirectoryElement) GetLength

func (*MemmappedFileSystemDirectoryElement) GetName

func (*MemmappedFileSystemDirectoryElement) GetOffset

func (*MemmappedFileSystemDirectoryElement) ProtoMessage

func (*MemmappedFileSystemDirectoryElement) ProtoMessage()

func (*MemmappedFileSystemDirectoryElement) ProtoReflect

func (*MemmappedFileSystemDirectoryElement) Reset

func (*MemmappedFileSystemDirectoryElement) String

type MemoryInfo

type MemoryInfo = protobuf.MemoryInfo

type MetricEntry

type MetricEntry = protobuf.MetricEntry

type PlatformInfo

type PlatformInfo = protobuf.PlatformInfo

type RequestedExitCode

type RequestedExitCode struct {
	ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestedExitCode) Descriptor deprecated

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

Deprecated: Use RequestedExitCode.ProtoReflect.Descriptor instead.

func (*RequestedExitCode) GetExitCode

func (x *RequestedExitCode) GetExitCode() int32

func (*RequestedExitCode) ProtoMessage

func (*RequestedExitCode) ProtoMessage()

func (*RequestedExitCode) ProtoReflect

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

func (*RequestedExitCode) Reset

func (x *RequestedExitCode) Reset()

func (*RequestedExitCode) String

func (x *RequestedExitCode) String() string

type RunConfiguration

type RunConfiguration = protobuf.RunConfiguration

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,proto3" 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 *framework.TensorSliceProto `protobuf:"bytes,2,opt,name=slice,proto3" 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 *framework.TensorProto `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

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

func (*SavedSlice) Descriptor deprecated

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

Deprecated: Use SavedSlice.ProtoReflect.Descriptor instead.

func (*SavedSlice) GetData

func (x *SavedSlice) GetData() *framework.TensorProto

func (*SavedSlice) GetName

func (x *SavedSlice) GetName() string

func (*SavedSlice) GetSlice

func (x *SavedSlice) GetSlice() *framework.TensorSliceProto

func (*SavedSlice) ProtoMessage

func (*SavedSlice) ProtoMessage()

func (*SavedSlice) ProtoReflect

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

func (*SavedSlice) Reset

func (x *SavedSlice) Reset()

func (*SavedSlice) String

func (x *SavedSlice) String() string

type SavedSliceMeta

type SavedSliceMeta struct {

	// Name of the tensor.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Shape of the tensor
	Shape *framework.TensorShapeProto `protobuf:"bytes,2,opt,name=shape,proto3" json:"shape,omitempty"`
	// Type of the tensor
	Type framework.DataType `protobuf:"varint,3,opt,name=type,proto3,enum=tensorflow.DataType" json:"type,omitempty"`
	// Explicit list of slices saved in the checkpoint file.
	Slice []*framework.TensorSliceProto `protobuf:"bytes,4,rep,name=slice,proto3" json:"slice,omitempty"`
	// contains filtered or unexported fields
}

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

func (*SavedSliceMeta) Descriptor deprecated

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

Deprecated: Use SavedSliceMeta.ProtoReflect.Descriptor instead.

func (*SavedSliceMeta) GetName

func (x *SavedSliceMeta) GetName() string

func (*SavedSliceMeta) GetShape

func (x *SavedSliceMeta) GetShape() *framework.TensorShapeProto

func (*SavedSliceMeta) GetSlice

func (x *SavedSliceMeta) GetSlice() []*framework.TensorSliceProto

func (*SavedSliceMeta) GetType

func (x *SavedSliceMeta) GetType() framework.DataType

func (*SavedSliceMeta) ProtoMessage

func (*SavedSliceMeta) ProtoMessage()

func (*SavedSliceMeta) ProtoReflect

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

func (*SavedSliceMeta) Reset

func (x *SavedSliceMeta) Reset()

func (*SavedSliceMeta) String

func (x *SavedSliceMeta) String() string

type SavedTensorSliceMeta

type SavedTensorSliceMeta struct {

	// Each SavedSliceMeta describes the slices for one tensor.
	Tensor []*SavedSliceMeta `protobuf:"bytes,1,rep,name=tensor,proto3" json:"tensor,omitempty"`
	// Compatibility version of this checkpoint.  See core/public/version.h
	// for version history.
	Versions *framework.VersionDef `protobuf:"bytes,2,opt,name=versions,proto3" json:"versions,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use SavedTensorSliceMeta.ProtoReflect.Descriptor instead.

func (*SavedTensorSliceMeta) GetTensor

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

func (*SavedTensorSliceMeta) GetVersions

func (x *SavedTensorSliceMeta) GetVersions() *framework.VersionDef

func (*SavedTensorSliceMeta) ProtoMessage

func (*SavedTensorSliceMeta) ProtoMessage()

func (*SavedTensorSliceMeta) ProtoReflect

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

func (*SavedTensorSliceMeta) Reset

func (x *SavedTensorSliceMeta) Reset()

func (*SavedTensorSliceMeta) String

func (x *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,proto3" json:"meta,omitempty"`
	// This exists in all but the first item of each checkpoint file.
	Data *SavedSlice `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

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

func (*SavedTensorSlices) Descriptor deprecated

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

Deprecated: Use SavedTensorSlices.ProtoReflect.Descriptor instead.

func (*SavedTensorSlices) GetData

func (x *SavedTensorSlices) GetData() *SavedSlice

func (*SavedTensorSlices) GetMeta

func (*SavedTensorSlices) ProtoMessage

func (*SavedTensorSlices) ProtoMessage()

func (*SavedTensorSlices) ProtoReflect

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

func (*SavedTensorSlices) Reset

func (x *SavedTensorSlices) Reset()

func (*SavedTensorSlices) String

func (x *SavedTensorSlices) String() string

type SessionLog

type SessionLog struct {
	Status SessionLog_SessionStatus `protobuf:"varint,1,opt,name=status,proto3,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,proto3" json:"checkpoint_path,omitempty"`
	Msg            string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

Protocol buffer used for logging session state.

func (*SessionLog) Descriptor deprecated

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

Deprecated: Use SessionLog.ProtoReflect.Descriptor instead.

func (*SessionLog) GetCheckpointPath

func (x *SessionLog) GetCheckpointPath() string

func (*SessionLog) GetMsg

func (x *SessionLog) GetMsg() string

func (*SessionLog) GetStatus

func (x *SessionLog) GetStatus() SessionLog_SessionStatus

func (*SessionLog) ProtoMessage

func (*SessionLog) ProtoMessage()

func (*SessionLog) ProtoReflect

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

func (*SessionLog) Reset

func (x *SessionLog) Reset()

func (*SessionLog) String

func (x *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) Descriptor

func (SessionLog_SessionStatus) Enum

func (SessionLog_SessionStatus) EnumDescriptor deprecated

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

Deprecated: Use SessionLog_SessionStatus.Descriptor instead.

func (SessionLog_SessionStatus) Number

func (SessionLog_SessionStatus) String

func (x SessionLog_SessionStatus) String() string

func (SessionLog_SessionStatus) Type

type SourceMetadata added in v2.12.0

type SourceMetadata struct {

	// Low level name of the summary writer, such as
	// `tensorflow.core.util.events_writer`.
	Writer string `protobuf:"bytes,1,opt,name=writer,proto3" json:"writer,omitempty"`
	// contains filtered or unexported fields
}

Holds the information of the source that writes the events.

func (*SourceMetadata) Descriptor deprecated added in v2.12.0

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

Deprecated: Use SourceMetadata.ProtoReflect.Descriptor instead.

func (*SourceMetadata) GetWriter added in v2.12.0

func (x *SourceMetadata) GetWriter() string

func (*SourceMetadata) ProtoMessage added in v2.12.0

func (*SourceMetadata) ProtoMessage()

func (*SourceMetadata) ProtoReflect added in v2.12.0

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

func (*SourceMetadata) Reset added in v2.12.0

func (x *SourceMetadata) Reset()

func (*SourceMetadata) String added in v2.12.0

func (x *SourceMetadata) String() string

type TaggedRunMetadata

type TaggedRunMetadata struct {

	// Tag name associated with this metadata.
	Tag string `protobuf:"bytes,1,opt,name=tag,proto3" 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"`
	// contains filtered or unexported fields
}

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

func (*TaggedRunMetadata) Descriptor deprecated

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

Deprecated: Use TaggedRunMetadata.ProtoReflect.Descriptor instead.

func (*TaggedRunMetadata) GetRunMetadata

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

func (*TaggedRunMetadata) GetTag

func (x *TaggedRunMetadata) GetTag() string

func (*TaggedRunMetadata) ProtoMessage

func (*TaggedRunMetadata) ProtoMessage()

func (*TaggedRunMetadata) ProtoReflect

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

func (*TaggedRunMetadata) Reset

func (x *TaggedRunMetadata) Reset()

func (*TaggedRunMetadata) String

func (x *TaggedRunMetadata) String() string

type TestResults

type TestResults = protobuf.TestResults

type TestResults_BenchmarkType

type TestResults_BenchmarkType = protobuf.TestResults_BenchmarkType

type WatchdogConfig

type WatchdogConfig struct {
	TimeoutMs int64 `protobuf:"varint,1,opt,name=timeout_ms,json=timeoutMs,proto3" json:"timeout_ms,omitempty"`
	// contains filtered or unexported fields
}

func (*WatchdogConfig) Descriptor deprecated

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

Deprecated: Use WatchdogConfig.ProtoReflect.Descriptor instead.

func (*WatchdogConfig) GetTimeoutMs

func (x *WatchdogConfig) GetTimeoutMs() int64

func (*WatchdogConfig) ProtoMessage

func (*WatchdogConfig) ProtoMessage()

func (*WatchdogConfig) ProtoReflect

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

func (*WatchdogConfig) Reset

func (x *WatchdogConfig) Reset()

func (*WatchdogConfig) String

func (x *WatchdogConfig) String() string

type WorkerHealth

type WorkerHealth int32

Current health status of a worker.

const (
	WorkerHealth_OK                       WorkerHealth = 0 // By default a worker is healthy.
	WorkerHealth_RECEIVED_SHUTDOWN_SIGNAL WorkerHealth = 1
	WorkerHealth_INTERNAL_ERROR           WorkerHealth = 2
	WorkerHealth_SHUTTING_DOWN            WorkerHealth = 3 // Worker has been instructed to shutdown after a timeout.
)

func (WorkerHealth) Descriptor

func (WorkerHealth) Enum

func (x WorkerHealth) Enum() *WorkerHealth

func (WorkerHealth) EnumDescriptor deprecated

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

Deprecated: Use WorkerHealth.Descriptor instead.

func (WorkerHealth) Number

func (WorkerHealth) String

func (x WorkerHealth) String() string

func (WorkerHealth) Type

type WorkerHeartbeatRequest

type WorkerHeartbeatRequest struct {
	ShutdownMode   WorkerShutdownMode `` /* 133-byte string literal not displayed */
	WatchdogConfig *WatchdogConfig    `protobuf:"bytes,2,opt,name=watchdog_config,json=watchdogConfig,proto3" json:"watchdog_config,omitempty"`
	ExitCode       *RequestedExitCode `protobuf:"bytes,3,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkerHeartbeatRequest) Descriptor deprecated

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

Deprecated: Use WorkerHeartbeatRequest.ProtoReflect.Descriptor instead.

func (*WorkerHeartbeatRequest) GetExitCode

func (x *WorkerHeartbeatRequest) GetExitCode() *RequestedExitCode

func (*WorkerHeartbeatRequest) GetShutdownMode

func (x *WorkerHeartbeatRequest) GetShutdownMode() WorkerShutdownMode

func (*WorkerHeartbeatRequest) GetWatchdogConfig

func (x *WorkerHeartbeatRequest) GetWatchdogConfig() *WatchdogConfig

func (*WorkerHeartbeatRequest) ProtoMessage

func (*WorkerHeartbeatRequest) ProtoMessage()

func (*WorkerHeartbeatRequest) ProtoReflect

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

func (*WorkerHeartbeatRequest) Reset

func (x *WorkerHeartbeatRequest) Reset()

func (*WorkerHeartbeatRequest) String

func (x *WorkerHeartbeatRequest) String() string

type WorkerHeartbeatResponse

type WorkerHeartbeatResponse struct {
	HealthStatus WorkerHealth `` /* 127-byte string literal not displayed */
	WorkerLog    []*Event     `protobuf:"bytes,2,rep,name=worker_log,json=workerLog,proto3" json:"worker_log,omitempty"`
	Hostname     string       `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkerHeartbeatResponse) Descriptor deprecated

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

Deprecated: Use WorkerHeartbeatResponse.ProtoReflect.Descriptor instead.

func (*WorkerHeartbeatResponse) GetHealthStatus

func (x *WorkerHeartbeatResponse) GetHealthStatus() WorkerHealth

func (*WorkerHeartbeatResponse) GetHostname

func (x *WorkerHeartbeatResponse) GetHostname() string

func (*WorkerHeartbeatResponse) GetWorkerLog

func (x *WorkerHeartbeatResponse) GetWorkerLog() []*Event

func (*WorkerHeartbeatResponse) ProtoMessage

func (*WorkerHeartbeatResponse) ProtoMessage()

func (*WorkerHeartbeatResponse) ProtoReflect

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

func (*WorkerHeartbeatResponse) Reset

func (x *WorkerHeartbeatResponse) Reset()

func (*WorkerHeartbeatResponse) String

func (x *WorkerHeartbeatResponse) String() string

type WorkerShutdownMode

type WorkerShutdownMode int32

Indicates the behavior of the worker when an internal error or shutdown signal is received.

const (
	WorkerShutdownMode_DEFAULT                WorkerShutdownMode = 0
	WorkerShutdownMode_NOT_CONFIGURED         WorkerShutdownMode = 1
	WorkerShutdownMode_WAIT_FOR_COORDINATOR   WorkerShutdownMode = 2
	WorkerShutdownMode_SHUTDOWN_AFTER_TIMEOUT WorkerShutdownMode = 3
)

func (WorkerShutdownMode) Descriptor

func (WorkerShutdownMode) Enum

func (WorkerShutdownMode) EnumDescriptor deprecated

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

Deprecated: Use WorkerShutdownMode.Descriptor instead.

func (WorkerShutdownMode) Number

func (WorkerShutdownMode) String

func (x WorkerShutdownMode) String() string

func (WorkerShutdownMode) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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