26 #include <llvm/ADT/Optional.h>
32 using Duration = std::chrono::high_resolution_clock::duration;
40 std::vector<MappingOptions>
load(
41 const std::string& cacheFileName,
42 const std::string& tcName,
43 const std::vector<const DLTensor*>& inputs,
44 const size_t numCandidates);
46 llvm::Optional<MappingOptions>
tune(
47 const std::string& cacheFileName,
48 const std::string& tcName,
49 const std::unordered_map<
size_t, std::vector<const DLTensor*>>& inputs,
50 std::unordered_map<
size_t, std::vector<DLTensor*>>& outputs,
52 std::vector<MappingOptions> startingPoints,
std::map< std::string, lang::TreeRef > tcNameMap_
Definition: genetic_autotuner.h:57
std::vector< MappingOptions > load(const std::string &cacheFileName, const std::string &tcName, const std::vector< const DLTensor * > &inputs, const size_t numCandidates)
GeneticAutotuner(const std::string &tc)
std::string tc_
Definition: genetic_autotuner.h:56
Definition: mapping_options.h:336
std::chrono::high_resolution_clock::duration Duration
Definition: genetic_autotuner.h:32
Definition: parameters.h:188
void storeCaches(const std::string &filename)
llvm::Optional< MappingOptions > tune(const std::string &cacheFileName, const std::string &tcName, const std::unordered_map< size_t, std::vector< const DLTensor * >> &inputs, std::unordered_map< size_t, std::vector< DLTensor * >> &outputs, MappingOptions baseMapping, std::vector< MappingOptions > startingPoints, const TuningParameterFixer &fixedParams)
Definition: genetic_autotuner.h:34