Documentation ¶
Index ¶
- Constants
- Variables
- type DebugOptions
- func (*DebugOptions) Descriptor() ([]byte, []int)deprecated
- func (x *DebugOptions) GetMlirDumpDir() string
- func (x *DebugOptions) GetMlirDumpFuncRegex() string
- func (x *DebugOptions) GetMlirDumpPassRegex() string
- func (x *DebugOptions) GetMlirElideElementsattrsIfLarger() int64
- func (x *DebugOptions) GetMlirEnableTiming() bool
- func (x *DebugOptions) GetMlirPrintIrAfter() string
- func (x *DebugOptions) GetMlirPrintIrBefore() string
- func (x *DebugOptions) GetMlirPrintIrModuleScope() bool
- func (*DebugOptions) ProtoMessage()
- func (x *DebugOptions) ProtoReflect() protoreflect.Message
- func (x *DebugOptions) Reset()
- func (x *DebugOptions) String() string
Constants ¶
View Source
const ( Default_DebugOptions_MlirDumpDir = string("") Default_DebugOptions_MlirDumpPassRegex = string(".*") Default_DebugOptions_MlirDumpFuncRegex = string(".*") Default_DebugOptions_MlirEnableTiming = bool(false) Default_DebugOptions_MlirPrintIrBefore = string("") Default_DebugOptions_MlirPrintIrAfter = string("") Default_DebugOptions_MlirPrintIrModuleScope = bool(true) )
Default values for DebugOptions fields.
Variables ¶
View Source
var File_tensorflow_compiler_mlir_lite_debug_debug_options_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DebugOptions ¶
type DebugOptions struct { // If not empty, dumps MLIR to the specified directory. The initial state of // the MLIR after import will be dumped at the beginning of each pass manager // run. Additionally, MLIR will be dumped before and after each pass // depending on pass names and functions matched using the // `mlir_dump_pass_regex` and `mlir_dump_func_regex` values. MlirDumpDir *string `protobuf:"bytes,1,opt,name=mlir_dump_dir,json=mlirDumpDir,def=" json:"mlir_dump_dir,omitempty"` // Regular expression that matches the names of passes in pascal case (e.g., // FooPass) before/after which MLIR will be dumped. Effective only if // mlir_dump_dir is not empty. MlirDumpPassRegex *string `protobuf:"bytes,2,opt,name=mlir_dump_pass_regex,json=mlirDumpPassRegex,def=.*" json:"mlir_dump_pass_regex,omitempty"` // Regular expression that matches the names of functions to be dumped. MLIR // modules are dumped only if there's at least one public function in the // module whose name matches the pattern. Effective only if mlir_dump_dir is // not empty. MlirDumpFuncRegex *string `protobuf:"bytes,3,opt,name=mlir_dump_func_regex,json=mlirDumpFuncRegex,def=.*" json:"mlir_dump_func_regex,omitempty"` // If true, report the execution time of each MLIR pass. MlirEnableTiming *bool `protobuf:"varint,4,opt,name=mlir_enable_timing,json=mlirEnableTiming,def=0" json:"mlir_enable_timing,omitempty"` // Prints MLIR before specified passes. Supports regular expressions for // matching against the names of the desired passes. MlirPrintIrBefore *string `protobuf:"bytes,5,opt,name=mlir_print_ir_before,json=mlirPrintIrBefore,def=" json:"mlir_print_ir_before,omitempty"` // Prints MLIR after specified passes. Supports regular expressions for // matching against the names of the desired passes. Currently only prints // after a pass if the MLIR is mutated. MlirPrintIrAfter *string `protobuf:"bytes,6,opt,name=mlir_print_ir_after,json=mlirPrintIrAfter,def=" json:"mlir_print_ir_after,omitempty"` // If true, always print the top-level operation when printing IR for // print_ir_[before|after]. MlirPrintIrModuleScope *bool `` /* 133-byte string literal not displayed */ // Elide ElementsAttrs with \"...\" that have more elements than the given // upper limit. MlirElideElementsattrsIfLarger *int64 `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Additional parameters that control the debug behavior of the Converter.
Next ID: 9
func (*DebugOptions) Descriptor
deprecated
func (*DebugOptions) Descriptor() ([]byte, []int)
Deprecated: Use DebugOptions.ProtoReflect.Descriptor instead.
func (*DebugOptions) GetMlirDumpDir ¶
func (x *DebugOptions) GetMlirDumpDir() string
func (*DebugOptions) GetMlirDumpFuncRegex ¶
func (x *DebugOptions) GetMlirDumpFuncRegex() string
func (*DebugOptions) GetMlirDumpPassRegex ¶
func (x *DebugOptions) GetMlirDumpPassRegex() string
func (*DebugOptions) GetMlirElideElementsattrsIfLarger ¶
func (x *DebugOptions) GetMlirElideElementsattrsIfLarger() int64
func (*DebugOptions) GetMlirEnableTiming ¶
func (x *DebugOptions) GetMlirEnableTiming() bool
func (*DebugOptions) GetMlirPrintIrAfter ¶
func (x *DebugOptions) GetMlirPrintIrAfter() string
func (*DebugOptions) GetMlirPrintIrBefore ¶
func (x *DebugOptions) GetMlirPrintIrBefore() string
func (*DebugOptions) GetMlirPrintIrModuleScope ¶
func (x *DebugOptions) GetMlirPrintIrModuleScope() bool
func (*DebugOptions) ProtoMessage ¶
func (*DebugOptions) ProtoMessage()
func (*DebugOptions) ProtoReflect ¶
func (x *DebugOptions) ProtoReflect() protoreflect.Message
func (*DebugOptions) Reset ¶
func (x *DebugOptions) Reset()
func (*DebugOptions) String ¶
func (x *DebugOptions) String() string
Click to show internal directories.
Click to hide internal directories.