Caffe2 - C++ API
A deep learning, cross platform ML framework
codegen.h
1 #pragma once
2 
3 #include <torch/csrc/WindowsTorchApiMacro.h>
4 #include <torch/csrc/jit/fuser/arg_spec.h>
5 #include <torch/csrc/jit/fuser/partition_desc.h>
6 #include <torch/csrc/jit/fuser/tensor_desc.h>
7 #include <torch/csrc/jit/ir.h>
8 
9 #include <iostream>
10 #include <string>
11 #include <tuple>
12 #include <vector>
13 
14 namespace torch {
15 namespace jit {
16 namespace fuser {
17 
18 // Creates a CPU or CUDA kernel for the given graph.
19 // Returns the C++ or CUDA string implementing the kernel.
20 TORCH_API std::string generateKernel(
21  const std::string& name,
22  const Graph& graph,
23  const std::vector<std::pair<const Value*, const TensorDesc>>& inputs,
24  const std::vector<std::pair<const Value*, const TensorDesc>>& outputs,
25  const bool use_cuda);
26 
27 } // namespace fuser
28 } // namespace jit
29 } // namespace torch
Definition: jit_type.h:17