22 #include <ATen/ATen.h>
23 #include <ATen/DLConvertor.h>
41 void define(
const std::string& language);
46 const std::string& name,
47 const std::vector<at::Tensor>& inputs,
52 const std::string& name,
53 const std::vector<at::Tensor>& inputs);
59 const std::string& name,
60 const std::vector<at::Tensor>& inputs,
61 std::vector<at::Tensor>& outputs,
63 bool profile =
false);
69 const std::vector<at::Tensor>& inputs,
70 std::vector<at::Tensor>& outputs,
77 std::pair<std::vector<DLTensor*>, std::vector<DLManagedTensor*>>
80 std::pair<std::vector<const DLTensor*>, std::vector<DLManagedTensor*>>
std::pair< std::vector< const DLTensor * >, std::vector< DLManagedTensor * > > toConstDlpackTensors(const std::vector< at::Tensor > &tensors)
std::unique_ptr< ExecutionEngine > executionEngine_
Definition: aten_compiler.h:74
Definition: aten_compiler.h:34
std::vector< const DLTensor * > inferOutputTensorInfo(const std::string &name, const std::vector< at::Tensor > &inputs)
Get the output Tensor info.
Definition: mapping_options.h:336
void uncheckedRun(const std::vector< at::Tensor > &inputs, std::vector< at::Tensor > &outputs, size_t handle)
std::chrono::high_resolution_clock::duration Duration
Definition: rtc.h:31
Duration run(const std::string &name, const std::vector< at::Tensor > &inputs, std::vector< at::Tensor > &outputs, size_t handle, bool profile=false)
size_t compile(const std::string &name, const std::vector< at::Tensor > &inputs, const MappingOptions &options)
Given a TC name, compile the TC.
void define(const std::string &language)
void deleteDlmTensors(std::vector< DLManagedTensor * > &tensors)
std::pair< std::vector< DLTensor * >, std::vector< DLManagedTensor * > > toDlpackTensors(const std::vector< at::Tensor > &tensors)