Documentation ¶
Index ¶
- Variables
- type ConverterErrorData
- func (*ConverterErrorData) Descriptor() ([]byte, []int)deprecated
- func (x *ConverterErrorData) GetComponent() string
- func (x *ConverterErrorData) GetErrorCode() ConverterErrorData_ErrorCode
- func (x *ConverterErrorData) GetErrorMessage() string
- func (x *ConverterErrorData) GetLocation() *ConverterErrorData_Location
- func (x *ConverterErrorData) GetOperator() *ConverterErrorData_Operator
- func (x *ConverterErrorData) GetSubcomponent() string
- func (*ConverterErrorData) ProtoMessage()
- func (x *ConverterErrorData) ProtoReflect() protoreflect.Message
- func (x *ConverterErrorData) Reset()
- func (x *ConverterErrorData) String() string
- type ConverterErrorData_ErrorCode
- func (ConverterErrorData_ErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x ConverterErrorData_ErrorCode) Enum() *ConverterErrorData_ErrorCode
- func (ConverterErrorData_ErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConverterErrorData_ErrorCode) Number() protoreflect.EnumNumber
- func (x ConverterErrorData_ErrorCode) String() string
- func (ConverterErrorData_ErrorCode) Type() protoreflect.EnumType
- func (x *ConverterErrorData_ErrorCode) UnmarshalJSON(b []byte) errordeprecated
- type ConverterErrorData_FileLoc
- func (*ConverterErrorData_FileLoc) Descriptor() ([]byte, []int)deprecated
- func (x *ConverterErrorData_FileLoc) GetColumn() uint32
- func (x *ConverterErrorData_FileLoc) GetFilename() string
- func (x *ConverterErrorData_FileLoc) GetLine() uint32
- func (*ConverterErrorData_FileLoc) ProtoMessage()
- func (x *ConverterErrorData_FileLoc) ProtoReflect() protoreflect.Message
- func (x *ConverterErrorData_FileLoc) Reset()
- func (x *ConverterErrorData_FileLoc) String() string
- type ConverterErrorData_Location
- func (*ConverterErrorData_Location) Descriptor() ([]byte, []int)deprecated
- func (x *ConverterErrorData_Location) GetCall() []*ConverterErrorData_SourceLoc
- func (x *ConverterErrorData_Location) GetType() ConverterErrorData_LocationType
- func (*ConverterErrorData_Location) ProtoMessage()
- func (x *ConverterErrorData_Location) ProtoReflect() protoreflect.Message
- func (x *ConverterErrorData_Location) Reset()
- func (x *ConverterErrorData_Location) String() string
- type ConverterErrorData_LocationType
- func (ConverterErrorData_LocationType) Descriptor() protoreflect.EnumDescriptor
- func (x ConverterErrorData_LocationType) Enum() *ConverterErrorData_LocationType
- func (ConverterErrorData_LocationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConverterErrorData_LocationType) Number() protoreflect.EnumNumber
- func (x ConverterErrorData_LocationType) String() string
- func (ConverterErrorData_LocationType) Type() protoreflect.EnumType
- func (x *ConverterErrorData_LocationType) UnmarshalJSON(b []byte) errordeprecated
- type ConverterErrorData_Operator
- func (*ConverterErrorData_Operator) Descriptor() ([]byte, []int)deprecated
- func (x *ConverterErrorData_Operator) GetName() string
- func (*ConverterErrorData_Operator) ProtoMessage()
- func (x *ConverterErrorData_Operator) ProtoReflect() protoreflect.Message
- func (x *ConverterErrorData_Operator) Reset()
- func (x *ConverterErrorData_Operator) String() string
- type ConverterErrorData_SourceLoc
- func (*ConverterErrorData_SourceLoc) Descriptor() ([]byte, []int)deprecated
- func (x *ConverterErrorData_SourceLoc) GetName() string
- func (x *ConverterErrorData_SourceLoc) GetSource() *ConverterErrorData_FileLoc
- func (*ConverterErrorData_SourceLoc) ProtoMessage()
- func (x *ConverterErrorData_SourceLoc) ProtoReflect() protoreflect.Message
- func (x *ConverterErrorData_SourceLoc) Reset()
- func (x *ConverterErrorData_SourceLoc) String() string
Constants ¶
This section is empty.
Variables ¶
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.
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.
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 (x *ConverterErrorData) GetErrorCode() ConverterErrorData_ErrorCode
func (*ConverterErrorData) GetErrorMessage ¶
func (x *ConverterErrorData) GetErrorMessage() string
func (*ConverterErrorData) GetLocation ¶
func (x *ConverterErrorData) GetLocation() *ConverterErrorData_Location
func (*ConverterErrorData) GetOperator ¶
func (x *ConverterErrorData) GetOperator() *ConverterErrorData_Operator
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) Descriptor() protoreflect.EnumDescriptor
func (ConverterErrorData_ErrorCode) Enum ¶
func (x ConverterErrorData_ErrorCode) Enum() *ConverterErrorData_ErrorCode
func (ConverterErrorData_ErrorCode) EnumDescriptor
deprecated
func (ConverterErrorData_ErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConverterErrorData_ErrorCode.Descriptor instead.
func (ConverterErrorData_ErrorCode) Number ¶
func (x ConverterErrorData_ErrorCode) Number() protoreflect.EnumNumber
func (ConverterErrorData_ErrorCode) String ¶
func (x ConverterErrorData_ErrorCode) String() string
func (ConverterErrorData_ErrorCode) Type ¶
func (ConverterErrorData_ErrorCode) Type() protoreflect.EnumType
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 (x *ConverterErrorData_FileLoc) ProtoReflect() protoreflect.Message
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 (x *ConverterErrorData_Location) GetCall() []*ConverterErrorData_SourceLoc
func (*ConverterErrorData_Location) GetType ¶
func (x *ConverterErrorData_Location) GetType() ConverterErrorData_LocationType
func (*ConverterErrorData_Location) ProtoMessage ¶
func (*ConverterErrorData_Location) ProtoMessage()
func (*ConverterErrorData_Location) ProtoReflect ¶
func (x *ConverterErrorData_Location) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (ConverterErrorData_LocationType) Enum ¶
func (x ConverterErrorData_LocationType) Enum() *ConverterErrorData_LocationType
func (ConverterErrorData_LocationType) EnumDescriptor
deprecated
func (ConverterErrorData_LocationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConverterErrorData_LocationType.Descriptor instead.
func (ConverterErrorData_LocationType) Number ¶
func (x ConverterErrorData_LocationType) Number() protoreflect.EnumNumber
func (ConverterErrorData_LocationType) String ¶
func (x ConverterErrorData_LocationType) String() string
func (ConverterErrorData_LocationType) Type ¶
func (ConverterErrorData_LocationType) Type() protoreflect.EnumType
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 (x *ConverterErrorData_Operator) ProtoReflect() protoreflect.Message
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 (x *ConverterErrorData_SourceLoc) GetSource() *ConverterErrorData_FileLoc
func (*ConverterErrorData_SourceLoc) ProtoMessage ¶
func (*ConverterErrorData_SourceLoc) ProtoMessage()
func (*ConverterErrorData_SourceLoc) ProtoReflect ¶
func (x *ConverterErrorData_SourceLoc) ProtoReflect() protoreflect.Message
func (*ConverterErrorData_SourceLoc) Reset ¶
func (x *ConverterErrorData_SourceLoc) Reset()
func (*ConverterErrorData_SourceLoc) String ¶
func (x *ConverterErrorData_SourceLoc) String() string