20#ifndef TVM_S_TIR_META_SCHEDULE_FEATURE_EXTRACTOR_H_
21#define TVM_S_TIR_META_SCHEDULE_FEATURE_EXTRACTOR_H_
24#include <tvm/ffi/container/array.h>
25#include <tvm/ffi/function.h>
26#include <tvm/ffi/reflection/registry.h>
27#include <tvm/ffi/string.h>
34namespace meta_schedule {
45 namespace refl = tvm::ffi::reflection;
46 refl::ObjectDef<FeatureExtractorObj>();
56 const TuneContext& context,
const ffi::Array<MeasureCandidate>& candidates) = 0;
70 using FExtractFrom = ffi::TypedFunction<ffi::Array<tvm::ffi::Tensor>(
71 const TuneContext& context,
const ffi::Array<MeasureCandidate>& candidates)>;
77 namespace refl = tvm::ffi::reflection;
78 refl::ObjectDef<PyFeatureExtractorObj>();
82 const ffi::Array<MeasureCandidate>& candidates)
final;
93 explicit FeatureExtractor(ffi::UnsafeInit tag, ffi::ObjectPtr<FeatureExtractorObj> data)
94 : ffi::ObjectRef(tag) {
95 data_ = std::move(data);
109 int arith_intensity_curve_num_samples = 10,
110 int cache_line_bytes = 64,
111 bool extract_workload =
false);
Device-independent tensor allocation, copies, views and serialization.
Managed reference to TuneContextObj.
Definition tune_context.h:100
Parent compiler symbol visibility.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41