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" 21 std::map<std::string, caffe2::DeviceOption>);
28 std::map<std::string, caffe2::DeviceOption> blobMap,
void addBlobDeviceOptions(std::map< std::string, caffe2::DeviceOption > blobMap, NNModule *nn)
Helpers for the convertToNNModule for use if you already have an NNModule.
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
repr::NNModule convertToNNModule(const caffe2::NetDef &net, bool strict, std::vector< repr::NNGraph::NodeRef > *opNodeVec)
Ingest a caffe2 protobuf model and output an NNModule.