26 #ifndef TVM_TARGET_COMPILATION_CONFIG_H_ 27 #define TVM_TARGET_COMPILATION_CONFIG_H_ 110 static constexpr
const char*
_type_key =
"CompilationConfig";
163 Target optional_host_target_arg);
170 #endif // TVM_TARGET_COMPILATION_CONFIG_H_ friend class CompilationConfig
Definition: compilation_config.h:146
Managed reference class to CompilationConfig.
Definition: compilation_config.h:154
constexpr const char * device_type
The device type.
Definition: stmt.h:1261
TargetMap legacy_target_map
The legacy targets map, mapping device type to Targets. Does not include any entry for the host targe...
Definition: compilation_config.h:61
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
static SEScope FullyUnconstrained()
Returns the unique fully unconstrained SEScope.
base class of all object containers.
Definition: object.h:165
static constexpr const char * _type_key
Definition: compilation_config.h:110
A compile time representation for a Storage or Execution Scope.
Visitor class to get the attributes of an AST/IR node. The content is going to be called for each fie...
Definition: reflection.h:52
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:270
Target optional_homogeneous_target
If defined then compile and/or run in 'homogenous execution mode'. In this mode all primitives are co...
Definition: compilation_config.h:94
Target host_target
The host target. Used for 'scalar' data and code (such as shapes and shape functions) and residual Re...
Definition: compilation_config.h:67
PassContext that is used to configure the pass behavior.
Definition: transform.h:154
#define TVM_DEFINE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:706
A cache of SEScopes. This can be used:
Definition: se_scope.h:333
Managed reference class to TargetNode.
Definition: target.h:132
Base class of all object reference.
Definition: object.h:504
SEScope host_se_scope
SEScope for the host.
Definition: compilation_config.h:83
#define TVM_DECLARE_FINAL_OBJECT_INFO(TypeName, ParentType)
helper macro to declare type information in a final class.
Definition: object.h:664
void VisitAttrs(AttrVisitor *v)
Managed reference class to SEScopeNode.
Definition: se_scope.h:256
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
Array< Target > primitive_targets
Vector of all available targets for primitive operators. May contain a Target for the same device typ...
Definition: compilation_config.h:74
SEScope CanonicalSEScope(const SEScope &se_scope) const
Returns a SEScope agreeing with se_scope on all its constrained fields, however:
Gathers the Targets and distinguished SEScopes in canonical form needed to compile a Relay module...
Definition: compilation_config.h:49
SEScope default_primitive_se_scope
SEScope for primitive operators which are not otherwise constrained to a particular device...
Definition: compilation_config.h:80