ONE - On-device Neural Engine
|
#include <caffe2_op_creator.h>
Public Member Functions | |
Caffe2OpCreator (mir::Graph *g) | |
std::vector< mir::Operation::Output * > | convertConstant (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertAdd (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertAveragePool (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertConv (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertConcat (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertDropout (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertFC (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertMaxPool (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertMul (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertRelu (const std::vector< mir::Operation::Output * > &inputs) |
std::vector< mir::Operation::Output * > | convertResizeNearest (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertSigmoid (const std::vector< mir::Operation::Output * > &inputs) |
std::vector< mir::Operation::Output * > | convertSoftmax (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertSpatialBN (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertSum (const std::vector< mir::Operation::Output * > &inputs) |
std::vector< mir::Operation::Output * > | convertClip (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
std::vector< mir::Operation::Output * > | convertReshape (const std::vector< mir::Operation::Output * > &inputs, const ::caffe2::OperatorDef &op) |
Definition at line 38 of file caffe2_op_creator.h.
|
inlineexplicit |
Definition at line 41 of file caffe2_op_creator.h.
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertAdd | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 261 of file caffe2_op_creator.cpp.
References mir_caffe2::getSingleArgument().
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertAveragePool | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 281 of file caffe2_op_creator.cpp.
References mir::AvgPool2DOpAttributes::data_format, mir::AvgPool2DOpAttributes::include_pad, mir::AvgPool2DOpAttributes::padding_after, mir::AvgPool2DOpAttributes::padding_before, mir::AvgPool2DOpAttributes::strides, and mir::AvgPool2DOpAttributes::window.
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertClip | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 509 of file caffe2_op_creator.cpp.
References mir_caffe2::getSingleArgument().
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertConcat | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 325 of file caffe2_op_creator.cpp.
References mir_caffe2::getSingleArgument().
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertConstant | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 250 of file caffe2_op_creator.cpp.
References mir_caffe2::hasArgument().
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertConv | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 300 of file caffe2_op_creator.cpp.
References mir::Conv2DOpAttributes::data_format, mir_caffe2::getSingleArgument(), mir::Conv2DOpAttributes::num_groups, mir::Conv2DOpAttributes::padding_after, mir::Conv2DOpAttributes::padding_before, and mir::Conv2DOpAttributes::strides.
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertDropout | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 337 of file caffe2_op_creator.cpp.
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertFC | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 345 of file caffe2_op_creator.cpp.
References mir::Shape::dim(), mir_caffe2::hasArgument(), and mir_caffe2::reshape.
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertMaxPool | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 366 of file caffe2_op_creator.cpp.
References mir::MaxPool2DOpAttributes::data_format, mir::MaxPool2DOpAttributes::padding_after, mir::MaxPool2DOpAttributes::padding_before, mir::MaxPool2DOpAttributes::strides, and mir::MaxPool2DOpAttributes::window.
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertMul | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 384 of file caffe2_op_creator.cpp.
References mir_caffe2::getSingleArgument().
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertRelu | ( | const std::vector< mir::Operation::Output * > & | inputs | ) |
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertReshape | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 526 of file caffe2_op_creator.cpp.
References mir::Tensor< T >::at(), mir::Tensor< T >::getShape(), and mir_caffe2::reshape.
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertResizeNearest | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 411 of file caffe2_op_creator.cpp.
References mir_caffe2::getSingleArgument().
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertSigmoid | ( | const std::vector< mir::Operation::Output * > & | inputs | ) |
Definition at line 428 of file caffe2_op_creator.cpp.
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertSoftmax | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 435 of file caffe2_op_creator.cpp.
References mir_caffe2::getSingleArgument(), and mir_caffe2::softmax.
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertSpatialBN | ( | const std::vector< mir::Operation::Output * > & | inputs, |
const ::caffe2::OperatorDef & | op | ||
) |
Definition at line 444 of file caffe2_op_creator.cpp.
References mir::Tensor< T >::at(), mir::Tensor< T >::getShape(), and mir_caffe2::getSingleArgument().
std::vector< mir::Operation::Output * > mir_caffe2::Caffe2OpCreator::convertSum | ( | const std::vector< mir::Operation::Output * > & | inputs | ) |
Definition at line 498 of file caffe2_op_creator.cpp.