Skip to content

Commit

Permalink
[IE CPU] Reimplement extension nodes via MKLDNNNode API (openvinotool…
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Shulman authored Jun 23, 2021
1 parent d690ac6 commit fcc07f8
Show file tree
Hide file tree
Showing 80 changed files with 6,169 additions and 5,714 deletions.
23 changes: 22 additions & 1 deletion inference-engine/src/mkldnn_plugin/cpu_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,28 @@ enum Type {
Reference,
ShuffleChannels,
DFT,
Math
Math,
CTCLoss,
Bucketize,
CTCGreedyDecoder,
CTCGreedyDecoderSeqLen,
CumSum,
DetectionOutput,
ExperimentalDetectronDetectionOutput,
LogSoftmax,
TopK,
GatherTree,
GRN,
Range,
Proposal,
ReorgYolo,
ReverseSequence,
ExperimentalDetectronTopKROIs,
ExperimentalDetectronROIFeatureExtractor,
ExperimentalDetectronPriorGridGenerator,
ExperimentalDetectronGenerateProposalsSingleImage,
ExtractImagePatches,
NonMaxSuppression
};

enum Algorithm {
Expand Down
21 changes: 21 additions & 0 deletions inference-engine/src/mkldnn_plugin/mkldnn_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,27 @@ static const InferenceEngine::details::caseless_unordered_map<std::string, Type>
{ "SoftPlus", Math},
{ "Softsign", Math},
{ "Tan", Math},
{ "CTCLoss", CTCLoss},
{ "Bucketize", Bucketize},
{ "CTCGreedyDecoder", CTCGreedyDecoder},
{ "CTCGreedyDecoderSeqLen", CTCGreedyDecoderSeqLen},
{ "CumSum", CumSum},
{ "DetectionOutput", DetectionOutput},
{ "ExperimentalDetectronDetectionOutput", ExperimentalDetectronDetectionOutput},
{ "LogSoftmax", LogSoftmax},
{ "TopK", TopK},
{ "GatherTree", GatherTree},
{ "GRN", GRN},
{ "Range", Range},
{ "Proposal", Proposal},
{ "ReorgYolo", ReorgYolo},
{ "ReverseSequence", ReverseSequence},
{ "ExperimentalDetectronTopKROIs", ExperimentalDetectronTopKROIs},
{ "ExperimentalDetectronROIFeatureExtractor", ExperimentalDetectronROIFeatureExtractor},
{ "ExperimentalDetectronPriorGridGenerator", ExperimentalDetectronPriorGridGenerator},
{ "ExperimentalDetectronGenerateProposalsSingleImage", ExperimentalDetectronGenerateProposalsSingleImage},
{ "ExtractImagePatches", ExtractImagePatches},
{ "NonMaxSuppressionIEInternal", NonMaxSuppression}
};

Type TypeFromName(const std::string type) {
Expand Down
44 changes: 43 additions & 1 deletion inference-engine/src/mkldnn_plugin/mkldnn_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static std::string NameFromType(Type type) {
case EmbeddingBagPackedSum:
return "EmbeddingBagPackedSum";
case EmbeddingBagOffsetsSum:
return "EmbeddingBagPackedSum";
return "EmbeddingBagOffsetsSum";
case Gather:
return "Gather";
case GatherElements:
Expand All @@ -150,6 +150,48 @@ static std::string NameFromType(Type type) {
return "DFT";
case Math:
return "Math";
case CTCLoss:
return "CTCLoss";
case Bucketize:
return "Bucketize";
case CTCGreedyDecoder:
return "CTCGreedyDecoder";
case CTCGreedyDecoderSeqLen:
return "CTCGreedyDecoderSeqLen";
case CumSum:
return "CumSum";
case DetectionOutput:
return "DetectionOutput";
case ExperimentalDetectronDetectionOutput:
return "ExperimentalDetectronDetectionOutput";
case LogSoftmax:
return "LogSoftmax";
case TopK:
return "TopK";
case GatherTree:
return "GatherTree";
case GRN:
return "GRN";
case Range:
return "Range";
case Proposal:
return "Proposal";
case ReorgYolo:
return "ReorgYolo";
case ReverseSequence:
return "ReverseSequence";
case ExperimentalDetectronTopKROIs:
return "ExperimentalDetectronTopKROIs";
case ExperimentalDetectronROIFeatureExtractor:
return "ExperimentalDetectronROIFeatureExtractor";
case ExperimentalDetectronPriorGridGenerator:
return "ExperimentalDetectronPriorGridGenerator";
case ExperimentalDetectronGenerateProposalsSingleImage:
return "ExperimentalDetectronGenerateProposalsSingleImage";
case ExtractImagePatches:
return "ExtractImagePatches";
case NonMaxSuppression:
return "NonMaxSuppression";
default:
return "Unknown";
}
Expand Down
242 changes: 0 additions & 242 deletions inference-engine/src/mkldnn_plugin/nodes/bucketize.cpp

This file was deleted.

Loading

0 comments on commit fcc07f8

Please sign in to comment.