Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
torch
csrc
api
src
jit.cpp
1
#include <torch/jit.h>
2
3
#include <torch/csrc/jit/script/compiler.h>
4
#include <ATen/core/stack.h>
5
6
#include <memory>
7
#include <string>
8
9
namespace
torch
{
10
namespace
jit {
11
12
std::shared_ptr<script::Module> compile(
const
std::string& source) {
13
auto
module = std::make_shared<script::Module>();
14
defineMethodsInModule(
15
module, source, script::nativeResolver,
/*self=*/
c10::nullopt);
16
return
module;
17
}
18
19
}
// namespace jit
20
}
// namespace torch
torch
Definition:
jit_type.h:17
Generated on Thu Mar 21 2019 13:06:22 for Caffe2 - C++ API by
1.8.11