20 #ifndef TVM_S_TIR_META_SCHEDULE_FEATURE_EXTRACTOR_H_
21 #define TVM_S_TIR_META_SCHEDULE_FEATURE_EXTRACTOR_H_
23 #include <tvm/ffi/container/array.h>
24 #include <tvm/ffi/function.h>
25 #include <tvm/ffi/reflection/registry.h>
26 #include <tvm/ffi/string.h>
32 namespace meta_schedule {
43 namespace refl = tvm::ffi::reflection;
44 refl::ObjectDef<FeatureExtractorNode>();
54 const TuneContext& context,
const ffi::Array<MeasureCandidate>& candidates) = 0;
68 using FExtractFrom = ffi::TypedFunction<ffi::Array<tvm::runtime::Tensor>(
69 const TuneContext& context,
const ffi::Array<MeasureCandidate>& candidates)>;
74 using FAsString = ffi::TypedFunction<ffi::String()>;
84 namespace refl = tvm::ffi::reflection;
85 refl::ObjectDef<PyFeatureExtractorNode>();
89 const TuneContext& context,
const ffi::Array<MeasureCandidate>& candidates)
final;
111 int arith_intensity_curve_num_samples = 10,
112 int cache_line_bytes = 64,
113 bool extract_workload =
false);
Managed reference to TuneContextNode.
Definition: tune_context.h:99
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition: analyzer.h:37
A device-independent managed Tensor abstraction.