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);
115 const Array<MeasureResult>& results,
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);
124 #endif // TVM_AUTO_SCHEDULER_FEATURE_H_ runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
PrimFuncFrame PrimFunc()
The primitive function statement.
Distributed measurement infrastructure to measure the runtime costs of tensor programs. These functions are responsible for building the tvm module, uploading it to remote devices, recording the running time costs, and checking the correctness of the output.
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.
The auto-scheduler's computational graph and related program analyses.
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.
PrimExpr ret(PrimExpr value, Span span=Span())
Return the value.
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 GetPerStoreFeatureName(int max_n_bufs, std::vector< std::string > *ret)