19 #include <ATen/ATen.h>
25 #include <llvm/ADT/Optional.h>
40 template <
typename Vector,
typename... Vectors>
44 const std::string&
id,
45 const std::vector<const DLTensor*>& inputs);
48 const std::string&
id,
49 const std::vector<const DLTensor*>& inputs,
50 const std::vector<const DLTensor*>& outputs);
53 const std::string&
id,
54 const std::vector<const DLTensor*>& inputs,
55 const std::vector<const DLTensor*>& outputs);
std::vector< std::size_t > powers2andCeilDivisors(std::size_t val)
std::vector< MappingOptions > restoreCandidates(const std::string &id, const std::vector< const DLTensor * > &inputs, const std::vector< const DLTensor * > &outputs)
Definition: mapping_options.h:336
llvm::Optional< MappingOptions > getBestOptions(const std::string &id, const std::vector< const DLTensor * > &inputs, const std::vector< const DLTensor * > &outputs)
Vector mergeVectors(Vector &&v, Vectors &&...vs)
Definition: utils-inl.h:44
std::chrono::high_resolution_clock::duration Duration
Definition: parameters.h:223
std::vector< OptionsWithMedianTime > getOptionsAndMedianRuntimes(const std::string &id, const std::vector< const DLTensor * > &inputs)