metrics

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConverterErrorData_ErrorCode_name = map[int32]string{
		0:   "UNKNOWN",
		1:   "ERROR_NEEDS_FLEX_OPS",
		2:   "ERROR_NEEDS_CUSTOM_OPS",
		3:   "ERROR_UNSUPPORTED_CONTROL_FLOW_V1",
		200: "ERROR_GPU_NOT_COMPATIBLE",
	}
	ConverterErrorData_ErrorCode_value = map[string]int32{
		"UNKNOWN":                           0,
		"ERROR_NEEDS_FLEX_OPS":              1,
		"ERROR_NEEDS_CUSTOM_OPS":            2,
		"ERROR_UNSUPPORTED_CONTROL_FLOW_V1": 3,
		"ERROR_GPU_NOT_COMPATIBLE":          200,
	}
)

Enum value maps for ConverterErrorData_ErrorCode.

View Source
var (
	ConverterErrorData_LocationType_name = map[int32]string{
		0: "UNKNOWNLOC",
		1: "NAMELOC",
		2: "CALLSITELOC",
		3: "FUSEDLOC",
	}
	ConverterErrorData_LocationType_value = map[string]int32{
		"UNKNOWNLOC":  0,
		"NAMELOC":     1,
		"CALLSITELOC": 2,
		"FUSEDLOC":    3,
	}
)

Enum value maps for ConverterErrorData_LocationType.

View Source
var File_tensorflow_lite_python_metrics_converter_error_data_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConverterErrorData

type ConverterErrorData struct {

	// The name of the component from which the error was originally thrown.
	Component *string `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"`
	// The name of the subcomponent from which the error was originally thrown. In
	// MLIR, this field contains the pass name.
	Subcomponent *string                       `protobuf:"bytes,2,opt,name=subcomponent" json:"subcomponent,omitempty"`
	ErrorCode    *ConverterErrorData_ErrorCode `` /* 131-byte string literal not displayed */
	ErrorMessage *string                       `protobuf:"bytes,4,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"`
	Operator     *ConverterErrorData_Operator  `protobuf:"bytes,5,opt,name=operator" json:"operator,omitempty"`
	Location     *ConverterErrorData_Location  `protobuf:"bytes,6,opt,name=location" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*ConverterErrorData) Descriptor deprecated

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

Deprecated: Use ConverterErrorData.ProtoReflect.Descriptor instead.

func (*ConverterErrorData) GetComponent

func (x *ConverterErrorData) GetComponent() string

func (*ConverterErrorData) GetErrorCode

func (*ConverterErrorData) GetErrorMessage

func (x *ConverterErrorData) GetErrorMessage() string

func (*ConverterErrorData) GetLocation

func (*ConverterErrorData) GetOperator

func (*ConverterErrorData) GetSubcomponent

func (x *ConverterErrorData) GetSubcomponent() string

func (*ConverterErrorData) ProtoMessage

func (*ConverterErrorData) ProtoMessage()

func (*ConverterErrorData) ProtoReflect

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

func (*ConverterErrorData) Reset

func (x *ConverterErrorData) Reset()

func (*ConverterErrorData) String

func (x *ConverterErrorData) String() string

type ConverterErrorData_ErrorCode

type ConverterErrorData_ErrorCode int32

Error code for popular errors.

const (
	ConverterErrorData_UNKNOWN                           ConverterErrorData_ErrorCode = 0
	ConverterErrorData_ERROR_NEEDS_FLEX_OPS              ConverterErrorData_ErrorCode = 1
	ConverterErrorData_ERROR_NEEDS_CUSTOM_OPS            ConverterErrorData_ErrorCode = 2
	ConverterErrorData_ERROR_UNSUPPORTED_CONTROL_FLOW_V1 ConverterErrorData_ErrorCode = 3
	// 200- 209 error codes are reserved for backend(delegate) compatibility.
	// Backend compatibility is checked at MlirToFlatBufferTranslateFunction()
	// with the converted flatbuffer model. If some nodes are incompatibile with
	// the given backends in TocoFlags.supported_backends, the error will be
	// raised.
	ConverterErrorData_ERROR_GPU_NOT_COMPATIBLE ConverterErrorData_ErrorCode = 200
)

func (ConverterErrorData_ErrorCode) Descriptor

func (ConverterErrorData_ErrorCode) Enum

func (ConverterErrorData_ErrorCode) EnumDescriptor deprecated

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

Deprecated: Use ConverterErrorData_ErrorCode.Descriptor instead.

func (ConverterErrorData_ErrorCode) Number

func (ConverterErrorData_ErrorCode) String

func (ConverterErrorData_ErrorCode) Type

func (*ConverterErrorData_ErrorCode) UnmarshalJSON deprecated

func (x *ConverterErrorData_ErrorCode) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type ConverterErrorData_FileLoc

type ConverterErrorData_FileLoc struct {
	Filename *string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"`
	Line     *uint32 `protobuf:"varint,2,opt,name=line" json:"line,omitempty"`
	Column   *uint32 `protobuf:"varint,3,opt,name=column" json:"column,omitempty"`
	// contains filtered or unexported fields
}

Represents a source location with file name, line and column number.

func (*ConverterErrorData_FileLoc) Descriptor deprecated

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

Deprecated: Use ConverterErrorData_FileLoc.ProtoReflect.Descriptor instead.

func (*ConverterErrorData_FileLoc) GetColumn

func (x *ConverterErrorData_FileLoc) GetColumn() uint32

func (*ConverterErrorData_FileLoc) GetFilename

func (x *ConverterErrorData_FileLoc) GetFilename() string

func (*ConverterErrorData_FileLoc) GetLine

func (x *ConverterErrorData_FileLoc) GetLine() uint32

func (*ConverterErrorData_FileLoc) ProtoMessage

func (*ConverterErrorData_FileLoc) ProtoMessage()

func (*ConverterErrorData_FileLoc) ProtoReflect

func (*ConverterErrorData_FileLoc) Reset

func (x *ConverterErrorData_FileLoc) Reset()

func (*ConverterErrorData_FileLoc) String

func (x *ConverterErrorData_FileLoc) String() string

type ConverterErrorData_Location

type ConverterErrorData_Location struct {
	Type *ConverterErrorData_LocationType `protobuf:"varint,1,opt,name=type,enum=tflite.metrics.ConverterErrorData_LocationType" json:"type,omitempty"`
	// For each location type, this field is different. If type is:
	//   - UNKNOWNLOC: call is empty.
	//   - NAMELOC: call has a single element representing the current node.
	//   - CALLSITELOC: call is a chain of source locations representing a
	//     stacktrace.
	//   - FUSEDLOC: call is a list, represents the list of output tensor
	//     locations.
	Call []*ConverterErrorData_SourceLoc `protobuf:"bytes,2,rep,name=call" json:"call,omitempty"`
	// contains filtered or unexported fields
}

Represents the location information of current node.

func (*ConverterErrorData_Location) Descriptor deprecated

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

Deprecated: Use ConverterErrorData_Location.ProtoReflect.Descriptor instead.

func (*ConverterErrorData_Location) GetCall

func (*ConverterErrorData_Location) GetType

func (*ConverterErrorData_Location) ProtoMessage

func (*ConverterErrorData_Location) ProtoMessage()

func (*ConverterErrorData_Location) ProtoReflect

func (*ConverterErrorData_Location) Reset

func (x *ConverterErrorData_Location) Reset()

func (*ConverterErrorData_Location) String

func (x *ConverterErrorData_Location) String() string

type ConverterErrorData_LocationType

type ConverterErrorData_LocationType int32

Represents the type of location.

const (
	// No location information available.
	ConverterErrorData_UNKNOWNLOC ConverterErrorData_LocationType = 0
	// The location is the nodename;
	ConverterErrorData_NAMELOC ConverterErrorData_LocationType = 1
	// The location is a stacktrace.
	ConverterErrorData_CALLSITELOC ConverterErrorData_LocationType = 2
	// The location is a fused location, usually represents the list of output
	// tensor locations of that node.
	ConverterErrorData_FUSEDLOC ConverterErrorData_LocationType = 3
)

func (ConverterErrorData_LocationType) Descriptor

func (ConverterErrorData_LocationType) Enum

func (ConverterErrorData_LocationType) EnumDescriptor deprecated

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

Deprecated: Use ConverterErrorData_LocationType.Descriptor instead.

func (ConverterErrorData_LocationType) Number

func (ConverterErrorData_LocationType) String

func (ConverterErrorData_LocationType) Type

func (*ConverterErrorData_LocationType) UnmarshalJSON deprecated

func (x *ConverterErrorData_LocationType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type ConverterErrorData_Operator

type ConverterErrorData_Operator struct {

	// The op name has "<dialect>.<name>" format, Ex: "tf.Abs".
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Information about the op where the error occurs.

func (*ConverterErrorData_Operator) Descriptor deprecated

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

Deprecated: Use ConverterErrorData_Operator.ProtoReflect.Descriptor instead.

func (*ConverterErrorData_Operator) GetName

func (x *ConverterErrorData_Operator) GetName() string

func (*ConverterErrorData_Operator) ProtoMessage

func (*ConverterErrorData_Operator) ProtoMessage()

func (*ConverterErrorData_Operator) ProtoReflect

func (*ConverterErrorData_Operator) Reset

func (x *ConverterErrorData_Operator) Reset()

func (*ConverterErrorData_Operator) String

func (x *ConverterErrorData_Operator) String() string

type ConverterErrorData_SourceLoc

type ConverterErrorData_SourceLoc struct {
	Name   *string                     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Source *ConverterErrorData_FileLoc `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"`
	// contains filtered or unexported fields
}

Represents the node name and its source location.

func (*ConverterErrorData_SourceLoc) Descriptor deprecated

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

Deprecated: Use ConverterErrorData_SourceLoc.ProtoReflect.Descriptor instead.

func (*ConverterErrorData_SourceLoc) GetName

func (x *ConverterErrorData_SourceLoc) GetName() string

func (*ConverterErrorData_SourceLoc) GetSource

func (*ConverterErrorData_SourceLoc) ProtoMessage

func (*ConverterErrorData_SourceLoc) ProtoMessage()

func (*ConverterErrorData_SourceLoc) ProtoReflect

func (*ConverterErrorData_SourceLoc) Reset

func (x *ConverterErrorData_SourceLoc) Reset()

func (*ConverterErrorData_SourceLoc) String

Jump to

Keyboard shortcuts

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