Class repr#

Inheritance Relationships#

Base Type#

Class Documentation#

class repr : public tvm::ffi::reflection::InfoTrait#

Trait that controls whether a field appears in repr output.

By default, all fields appear in repr. Use repr(false) to exclude a field.

Public Functions

inline explicit repr(bool show)#

Constructor.

Parameters:

show – Whether the field should appear in repr output.

inline void Apply(TVMFFIFieldInfo *info) const#

Apply the repr flag to the field info.

Parameters:

info – The field info.