|
ONE - On-device Neural Engine
|
Data Structures | |
| class | Caffe2OpCreator |
Typedefs | |
| using | RepArgument = const ::google::protobuf::RepeatedPtrField<::caffe2::Argument > & |
Enumerations | |
| enum class | SupportedCaffe2OpType { add , averagePool , clip , concat , conv , constantFill , dropout , FC , givenTensorFill , givenTensorInt64Fill , maxPool , mul , relu , reshape , resizeNearest , sigmoid , softmax , spatialBN , sum } |
Functions | |
| std::unique_ptr< mir::Graph > | loadModel (std::string predict_net, std::string init_net, const std::vector< std::vector< int > > &input_shapes) |
| const ::caffe2::Argument & | findArgumentByName (RepArgument args, const std::string &name) |
| bool | hasArgument (RepArgument args, const std::string &name) |
| int | getSingleArgument (const ::caffe2::OperatorDef &op, const std::string &argument_name, const int default_value) |
| float | getSingleArgument (const ::caffe2::OperatorDef &op, const std::string &argument_name, const float default_value) |
| std::string | getSingleArgument (const ::caffe2::OperatorDef &op, const std::string &argument_name, const std::string &default_value) |
| using mir_caffe2::RepArgument = typedef const ::google::protobuf::RepeatedPtrField<::caffe2::Argument> & |
Definition at line 25 of file caffe2_proto_helper.h.
|
strong |
| Enumerator | |
|---|---|
| add | |
| averagePool | |
| clip | |
| concat | |
| conv | |
| constantFill | |
| dropout | |
| FC | |
| givenTensorFill | |
| givenTensorInt64Fill | |
| maxPool | |
| mul | |
| relu | |
| reshape | |
| resizeNearest | |
| sigmoid | |
| softmax | |
| spatialBN | |
| sum | |
Definition at line 23 of file caffe2_op_types.h.
| const ::caffe2::Argument & mir_caffe2::findArgumentByName | ( | RepArgument | args, |
| const std::string & | name | ||
| ) |
Definition at line 22 of file caffe2_proto_helper.cpp.
Referenced by getSingleArgument(), getSingleArgument(), and getSingleArgument().
| float mir_caffe2::getSingleArgument | ( | const ::caffe2::OperatorDef & | op, |
| const std::string & | argument_name, | ||
| const float | default_value | ||
| ) |
Definition at line 46 of file caffe2_proto_helper.cpp.
References findArgumentByName(), and hasArgument().
| int mir_caffe2::getSingleArgument | ( | const ::caffe2::OperatorDef & | op, |
| const std::string & | argument_name, | ||
| const int | default_value | ||
| ) |
Definition at line 38 of file caffe2_proto_helper.cpp.
References findArgumentByName(), and hasArgument().
Referenced by mir_caffe2::Caffe2OpCreator::convertAdd(), mir_caffe2::Caffe2OpCreator::convertClip(), mir_caffe2::Caffe2OpCreator::convertConcat(), mir_caffe2::Caffe2OpCreator::convertConv(), mir_caffe2::Caffe2OpCreator::convertMul(), mir_caffe2::Caffe2OpCreator::convertResizeNearest(), mir_caffe2::Caffe2OpCreator::convertSoftmax(), and mir_caffe2::Caffe2OpCreator::convertSpatialBN().
| std::string mir_caffe2::getSingleArgument | ( | const ::caffe2::OperatorDef & | op, |
| const std::string & | argument_name, | ||
| const std::string & | default_value | ||
| ) |
Definition at line 54 of file caffe2_proto_helper.cpp.
References findArgumentByName(), and hasArgument().
| bool mir_caffe2::hasArgument | ( | RepArgument | args, |
| const std::string & | name | ||
| ) |
Definition at line 30 of file caffe2_proto_helper.cpp.
Referenced by mir_caffe2::Caffe2OpCreator::convertConstant(), mir_caffe2::Caffe2OpCreator::convertFC(), getSingleArgument(), getSingleArgument(), and getSingleArgument().
| std::unique_ptr< mir::Graph > mir_caffe2::loadModel | ( | std::string | predict_net, |
| std::string | init_net, | ||
| const std::vector< std::vector< int > > & | input_shapes | ||
| ) |
Definition at line 336 of file caffe2_importer.cpp.
Referenced by main().