Class DefaultValue#

Inheritance Relationships#

Base Type#

Class Documentation#

class DefaultValue : public tvm::ffi::reflection::FieldInfoTrait#

Trait that can be used to set field default value.

Public Functions

inline explicit DefaultValue(Any value)#

Constructor.

Parameters:

value – The value to be set

inline void Apply(TVMFFIFieldInfo *info) const#

Apply the default value to the field info.

Parameters:

info – The field info.