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.