Caffe2 - C++ API
A deep learning, cross platform ML framework
distributed.h
1 #pragma once
2 
3 #include "caffe2/core/common.h"
4 #include "caffe2/core/logging.h"
5 #include "caffe2/proto/caffe2_pb.h"
6 #include "nomnigraph/Representations/NeuralNet.h"
7 
8 namespace caffe2 {
9 
20  caffe2::NetDef&,
21  std::map<std::string, caffe2::DeviceOption>);
22 
27 CAFFE2_API void addBlobDeviceOptions(
28  std::map<std::string, caffe2::DeviceOption> blobMap,
30 CAFFE2_API void injectDataEdgeIndicators(nom::repr::NNModule* nn);
31 CAFFE2_API void removeDataEdgeIndicators(nom::repr::NNModule* nn);
32 
33 } // namespace caffe2
void addBlobDeviceOptions(std::map< std::string, caffe2::DeviceOption > blobMap, NNModule *nn)
Helpers for the convertToNNModule for use if you already have an NNModule.
Definition: distributed.cc:16
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13
repr::NNModule convertToNNModule(const caffe2::NetDef &net, bool strict, std::vector< repr::NNGraph::NodeRef > *opNodeVec)
Ingest a caffe2 protobuf model and output an NNModule.
Definition: converter.cc:301