Template Struct ty_arg#

Inheritance Relationships#

Base Type#

Struct Documentation#

template<typename T = Type>
struct ty_arg : public tvm::sig::SignatureTrait#

One type argument of type T, for example sig::ty_arg<PrimType>("dtype") for a required primitive type.

Public Functions

inline explicit ty_arg(ffi::String name, ffi::String doc = "")#
inline void CollectMetadata(OpObj *op) const#

Public Members

ffi::String name#

Type-argument name recorded in operator metadata.

ffi::String doc#

Type-argument documentation recorded in operator metadata.

Public Static Functions

static inline bool Validate(ValidateState *state, ffi::Expected<void> *out)#

Public Static Attributes

static constexpr size_t kTyArgsCount = 1#

Contributes one required type argument.