31 #ifndef TVM_AUTO_SCHEDULER_FEATURE_H_ 32 #define TVM_AUTO_SCHEDULER_FEATURE_H_ 41 namespace auto_scheduler {
51 std::vector<float>*
ret);
70 int skip_first_n_feature_extraction,
int max_n_bufs,
71 std::vector<std::vector<float> >* features);
83 int skip_first_n_feature_extraction,
int max_n_bufs,
84 std::vector<std::vector<float> >* features);
97 std::vector<std::vector<float> >* features,
98 std::vector<float>* normalized_throughputs,
99 std::vector<int>* task_ids);
113 const Array<MeasureResult>& results,
114 int skip_first_n_feature_extraction,
int max_n_bufs,
115 std::vector<std::vector<float> >* features,
116 std::vector<float>* normalized_throughputs,
117 std::vector<int>* task_ids);
122 #endif // TVM_AUTO_SCHEDULER_FEATURE_H_ Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
void GetPerStoreFeature(const Stmt &stmt, int cache_line_size, int max_n_bufs, std::vector< float > *ret)
Get per-store feature from a TIR Stmt.
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.
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 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.
The auto-scheduler's computational graph and related program analyses.
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.
PrimExpr ret(PrimExpr value, Span span=Span())
Return the value.
void GetPerStoreFeatureName(int max_n_bufs, std::vector< std::string > *ret)