Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
genetic_autotuner_aten.h
Go to the documentation of this file.
1 
16 #pragma once
17 #include <chrono>
18 #include <iostream>
19 #include <memory>
20 #include <vector>
21 
22 #include "tc/aten/aten_compiler.h"
26 #include "tc/lang/parser.h"
27 
28 namespace tc {
29 namespace autotune {
30 
32  public:
33  GeneticAutotunerATen(const std::string tc);
34 
35  std::vector<MappingOptions> load(
36  const std::string& cacheFileName,
37  const std::string& tcName,
38  const std::vector<at::Tensor> inputs,
39  const size_t numCandidates);
40 
41  llvm::Optional<MappingOptions> tune(
42  const std::string& cacheFileName,
43  const std::string& tcName,
44  const std::vector<at::Tensor>& inputs,
45  MappingOptions baseMapping,
46  std::vector<MappingOptions> startingPoints,
47  const TuningParameterFixer& fixedParams = {});
48 
49  private:
50  std::string tc_;
51  std::unique_ptr<detail::GeneticAutotuner> geneticAutotuner_;
52 };
53 
54 } // namespace autotune
55 } // namespace tc
std::vector< MappingOptions > load(const std::string &cacheFileName, const std::string &tcName, const std::vector< at::Tensor > inputs, const size_t numCandidates)
llvm::Optional< MappingOptions > tune(const std::string &cacheFileName, const std::string &tcName, const std::vector< at::Tensor > &inputs, MappingOptions baseMapping, std::vector< MappingOptions > startingPoints, const TuningParameterFixer &fixedParams={})
GeneticAutotunerATen(const std::string tc)
Definition: mapping_options.h:336
std::unique_ptr< detail::GeneticAutotuner > geneticAutotuner_
Definition: genetic_autotuner_aten.h:51
Definition: parameters.h:188
Definition: genetic_autotuner_aten.h:31
std::string tc_
Definition: genetic_autotuner_aten.h:50