tvm
Public Attributes | List of all members
tvm::ir::ConfigSchema::OptionEntry Struct Reference

Schema entry for one declared option. More...

#include <config_schema.h>

Collaboration diagram for tvm::ir::ConfigSchema::OptionEntry:

Public Attributes

ffi::String key
 Option key. More...
 
ffi::String type_str
 Type string for this option. More...
 
ffi::TypedFunction< ffi::Any(ffi::Any)> validator
 Per-option validator/coercer (Any -> Any). More...
 
bool has_default = false
 Whether this option has a default value or factory. More...
 
bool default_from_factory = false
 Whether the default is produced by a factory function. More...
 
ffi::Any default_value
 Default value, or factory function () -> Any when default_from_factory is true. More...
 

Detailed Description

Schema entry for one declared option.

Member Data Documentation

◆ default_from_factory

bool tvm::ir::ConfigSchema::OptionEntry::default_from_factory = false

Whether the default is produced by a factory function.

◆ default_value

ffi::Any tvm::ir::ConfigSchema::OptionEntry::default_value

Default value, or factory function () -> Any when default_from_factory is true.

◆ has_default

bool tvm::ir::ConfigSchema::OptionEntry::has_default = false

Whether this option has a default value or factory.

◆ key

ffi::String tvm::ir::ConfigSchema::OptionEntry::key

Option key.

◆ type_str

ffi::String tvm::ir::ConfigSchema::OptionEntry::type_str

Type string for this option.

◆ validator

ffi::TypedFunction<ffi::Any(ffi::Any)> tvm::ir::ConfigSchema::OptionEntry::validator

Per-option validator/coercer (Any -> Any).


The documentation for this struct was generated from the following file: