24 #ifndef TVM_RELAY_ATTRS_ANNOTATION_H_ 25 #define TVM_RELAY_ATTRS_ANNOTATION_H_ 88 .describe(
"The type of the virtual device which should hold the expression result.")
91 .describe(
"If true, do not insert a \"device_copy\" call to respect this annotation.")
103 TVM_ATTR_FIELD(dtype).describe(
"The data type denoted to be cast.");
115 TVM_ATTR_FIELD(compiler).describe(
"A 3rd party compiler used for code generation.");
127 TVM_ATTR_FIELD(metadata).describe(
"Metadata attached to the TIR function call.");
133 #endif // TVM_RELAY_ATTRS_ANNOTATION_H_ std::string compiler
A 3rd party compiler for code generation.
Definition: annotation.h:112
TVM_DECLARE_ATTRS(CompilerAttrs, "relay.attrs.CompilerAttrs")
Definition: annotation.h:114
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
Options for the operators used to annotate a compiler.
Definition: annotation.h:110
int device_type
Device type on which argument expression should be evaluated.
Definition: annotation.h:77
TVM_DECLARE_ATTRS(OnDeviceAttrs, "relay.attrs.OnDeviceAttrs")
Definition: annotation.h:86
TVM_DECLARE_ATTRS(CastHintAttrs, "relay.attrs.CastHintAttrs")
Definition: annotation.h:102
DataType dtype
Definition: annotation.h:100
Helpers for attribute objects.
Metadata for calls to TIR functions, useful for program analysis crossing Relay and TIR...
Definition: annotation.h:122
Map< String, ObjectRef > metadata
The metadata attached to the call node.
Definition: annotation.h:124
Runtime primitive data type.
Definition: data_type.h:41
#define TVM_ATTR_FIELD(FieldName)
Declare an attribute field.
Definition: attrs.h:76
Annotate an expression to be cast into specific data type.
Definition: annotation.h:99
Attributes for the "on_device" special operator.
Definition: annotation.h:74
bool is_fixed
If true, the result device must also be device_type and device planning should not insert any "device...
Definition: annotation.h:84
The base class of the all the Use "curiously recurring template pattern".
Definition: attrs.h:793
Map container of NodeRef->NodeRef in DSL graph. Map implements copy on write semantics, which means map is mutable but copy will happen when array is referenced in more than two places.
Definition: map.h:1235
TVM_DECLARE_ATTRS(TIRCallAttrs, "relay.attrs.TIRCallAttrs")
Definition: annotation.h:126
constexpr DLDeviceType kInvalidDeviceType
Definition: ndarray.h:51