31 #ifndef TVM_AUTO_SCHEDULER_FEATURE_H_
32 #define TVM_AUTO_SCHEDULER_FEATURE_H_
42 namespace auto_scheduler {
53 std::vector<float>*
ret,
bool log_scale =
true);
72 int skip_first_n_feature_extraction,
int max_n_bufs,
73 std::vector<std::vector<float>>* features);
85 int skip_first_n_feature_extraction,
int max_n_bufs,
86 std::vector<std::vector<float>>* features);
99 std::vector<std::vector<float>>* features,
100 std::vector<float>* normalized_throughputs,
101 std::vector<int>* task_ids);
116 int skip_first_n_feature_extraction,
int max_n_bufs,
117 std::vector<std::vector<float>>* features,
118 std::vector<float>* normalized_throughputs,
119 std::vector<int>* task_ids);
Managed reference to SearchTaskNode.
Definition: search_task.h:148
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Managed reference to PrimFuncNode.
Definition: function.h:145
The auto-scheduler's computational graph and related program analyses.
Distributed measurement infrastructure to measure the runtime costs of tensor programs....
void GetPerStoreFeaturesFromFile(const std::string &filename, int max_lines, int max_n_bufs, std::vector< std::vector< float >> *features, std::vector< float > *normalized_throughputs, std::vector< int > *task_ids)
Get per-store features from a log file.
void GetPerStoreFeature(const PrimFunc &func, int cache_line_size, int max_n_bufs, std::vector< float > *ret, bool log_scale=true)
Get per-store features from a TIR PrimFunc.
void GetPerStoreFeaturesFromStates(const Array< State > &states, const SearchTask &task, int skip_first_n_feature_extraction, int max_n_bufs, std::vector< std::vector< float >> *features)
Get per-store feature from states of the same task.
void GetPerStoreFeaturesFromMeasurePairs(const Array< MeasureInput > &inputs, const Array< MeasureResult > &results, int skip_first_n_feature_extraction, int max_n_bufs, std::vector< std::vector< float >> *features, std::vector< float > *normalized_throughputs, std::vector< int > *task_ids)
Get per-store features from measurement input/result pairs.
void GetPerStoreFeatureName(int max_n_bufs, std::vector< std::string > *ret)
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
PrimExpr ret(PrimExpr value, Span span=Span())
Return the value.