Caffe2 - C++ API
A deep learning, cross platform ML framework
netdef_converter.h
1 #pragma once
2 #include <caffe2/proto/caffe2_pb.h>
3 #include <torch/csrc/jit/ir.h>
4 #include <unordered_map>
5 
6 namespace torch {
7 namespace jit {
8 
18 void convertNetDefToIR(
19  const caffe2::NetDef& net,
20  Graph* graph,
21  std::unordered_map<std::string, Value*>* valueMapPtr = nullptr,
22  const std::string& prefix = "");
23 
37 void convertIRToNetDef(
38  caffe2::NetDef* net,
39  const Graph& graph,
40  const std::string& prefix = "");
41 
42 } // namespace jit
43 } // namespace torch
Definition: jit_type.h:17