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>
33 namespace meta_schedule {
45 refl::ObjectDef<FeatureExtractorNode>();
55 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()>;
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
Definition: repr_printer.h:91
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition: analyzer.h:37
A managed object in the TVM runtime.
A device-independent managed Tensor abstraction.