openvino/model-optimizer/extensions/back
Maxim Vafin f1811ad060
Implement support for opset3 EmbeddingBag ops (#546)
* [MO] Implement EmbeddingBag_3

* Transform dynamic sub-graph of Wide and Deep into EmbeddingSegmentsSum

- Expressed SparseWeightedSum sub-graph through EmbeddingSegmentsSum
- Removed experimental SparseWeightedSum layer
- Implemented tests for the transformation

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix EmbeddingBag shape infer

* Fix EmbeddingSegmentsSum transformation for Wide and Deep

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix EmbeddingSegmentSum replacer after ports swap

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update package_BOM.txt

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Add unit tests for EmbeddingXXX shape infer

* Fix ATen resolver

* Remove deleted files from BOM

* Add opset version to embedding_bag

* Use base class for EmbeddingBag

* Fix per_sample_weights case

* Fix EmbeddingSegmentsSum transformation

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix EmbeddingBag checks

* Fix ATen front transformation and merge conflicts

* Fix BOM

* Work around limitation for I64 input of W&D model

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Cleanup where operation to fix affect of WhereDecomposition transform

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix BOM

* Correct EmbeddingSegmentSum transform for Wide and Deep

Add casting segment ids to i32 and remove ConstToResult sub-graph.

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update BOM with RemoveConstToResult transform

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Add more comments for RemoveConstToResult transformation

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Remove useless logging in EmbeddingSegmentsSum transformation

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Small fixes

* Move EmbeddingBag resolving back to front phase

* Improve error messages

* Fix typo in unittests

* Reimplement sparse_reshape middle transform

Avoid deprecated API.

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Clean-up graph after sparse_reshape and ConstToResult transformation

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix clean-up for transformations

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix clean-up for transformation #2

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2020-06-08 18:06:40 +03:00
..
ActivationsNormalizer.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
AvgPool.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
CellNormalizer.py publish master branch snapshot, revision 59af1853ca21ea08acf17b177da0b239753deb46 2020-05-18 17:21:58 +03:00
ClampNormalizer.py Support ONNX Clamp-11 (#538) 2020-05-25 19:59:07 +03:00
ClampNormalizer_test.py Support ONNX Clamp-11 (#538) 2020-05-25 19:59:07 +03:00
ConvolutionNormalizer.py Publishing 2020.2 content 2020-04-13 21:17:23 +03:00
ConvolutionNormalizer_test.py Publishing 2020.2 content 2020-04-13 21:17:23 +03:00
CorrectName.py publish master branch snapshot, revision 49482ae3bea0cbaa07474f86f36db11943142687 2020-05-13 21:12:22 +03:00
CropToStridedSlice.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
CutMemory.py publish master branch snapshot, revision ea98a886d925eb152931aab13856e68037665562 2020-05-22 03:42:00 +03:00
CutMemory_test.py publish master branch snapshot, revision ea98a886d925eb152931aab13856e68037665562 2020-05-22 03:42:00 +03:00
DumpFakeQuantStat.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
ElementwiseOpsToEltwiseOps.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
EnableConstantStridedSlice.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
ForceStrictPrecision.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
FuseTransposesSequence.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
FuseTransposesSequence_test.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
GatherNormalizer.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
GroupedConvWeightsNormalize.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
I64ToI32.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
InterpolateReshape.py [ MO ] InterpolateConcat empty sources fix (#764) 2020-06-04 14:18:33 +03:00
InterpolateReshape_test.py [ MO Interpolate ] Fixing broken model reshape-ability (#619) 2020-05-29 09:15:47 +03:00
InterpolateToInterpOrResample.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
LRNToNorm.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
LeakyReLUMutation.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
LeakyReluToReluWithNegativeSlope.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
MatMulNormalizer.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
MaxPool.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
NonMaximumSuppressionNormalize.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
NormalizeToNormalizeL2.py publish master branch snapshot, revision 49482ae3bea0cbaa07474f86f36db11943142687 2020-05-13 21:12:22 +03:00
OneHotNormalizer.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
OptimizeTransposeReshapeSequence.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
OptimizeTransposeReshapeSequence_test.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
PackBinaryWeights.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
PadToV7.py Publishing 2020.2 content 2020-04-13 21:17:23 +03:00
ParameterToPlaceholder.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
ProposalMutation.py Fix Proposal for the case of 2 outputs (#773) 2020-06-04 20:56:46 +03:00
RNNSequenceTypeRename.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
ReadValueAssignToMemory.py publish master branch snapshot, revision ea98a886d925eb152931aab13856e68037665562 2020-05-22 03:42:00 +03:00
ReduceToPooling.py Publishing 2020.2 content 2020-04-13 21:17:23 +03:00
ReduceToPooling_test.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
ReduceTransposeDimensions.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
ReduceTransposeDimensions_test.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
RemoveUselessConvert.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
Reshape0DToSqueeze.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
ReshapeMutation.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
ResultNormalizer.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
ReverseInputChannels.py Publishing 2020.2 content 2020-04-13 21:17:23 +03:00
ScalarConstNormalize.py Publishing 2020.2 content 2020-04-13 21:17:23 +03:00
SelectBroadcast.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
ShapeOfToShape.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
ShuffleChannelPatternOptimization.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
ShufflenetReLUReorder.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
ShufflenetReLUReorder_test.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
SpecialNodesFinalization.py Implement support for opset3 EmbeddingBag ops (#546) 2020-06-08 18:06:40 +03:00
SpecialNodesFinalization_test.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
StridedSliceMasksNormalizer.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
TileNormalizer.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
TileNormalizer_test.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
TopKNormalizer.py Remove TopKnormalizer from MO IR Reader transformation_list (#590) 2020-06-02 12:43:41 +03:00
TransposeReduceFusing.py Publishing 2020.2 content 2020-04-13 21:17:23 +03:00
TransposeReduceFusing_test.py Publishing 2020.2 content 2020-04-13 21:17:23 +03:00
TransposeToPermute.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
UselessConcatRemoval.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
__init__.py Publishing R3 2018-10-16 13:45:03 +03:00
blob_normalizer.py publish master branch snapshot, revision 59af1853ca21ea08acf17b177da0b239753deb46 2020-05-18 17:21:58 +03:00
compress_quantized_weights.py Publishing 2020.2 content 2020-04-13 21:17:23 +03:00
compress_quantized_weights_test.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
disable_unsupported_ND_operations.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
fuse_sub_div_min.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
insert_compatibility_l2normalization.py publish master branch snapshot, revision cdcab9d7ab48ffb0ee5629fabbfa06cb45debd9b 2020-04-15 19:01:57 +03:00
insert_compatibility_l2normalization_test.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
kaldi_remove_memory_output.py publish master branch snapshot, revision ea98a886d925eb152931aab13856e68037665562 2020-05-22 03:42:00 +03:00
kaldi_remove_memory_output_test.py publish master branch snapshot, revision ea98a886d925eb152931aab13856e68037665562 2020-05-22 03:42:00 +03:00
op_versioning.py publish master branch snapshot, revision 59af1853ca21ea08acf17b177da0b239753deb46 2020-05-18 17:21:58 +03:00
pass_separator.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
priorbox_mutation.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00
remove_last_softmax_pattern.py publish master branch snapshot, revision 0110d9c98fd7209589d06344f0d836f61d81f4b3 2020-04-27 21:21:29 +03:00
remove_last_softmax_test.py publish master branch snapshot, revision 0110d9c98fd7209589d06344f0d836f61d81f4b3 2020-04-27 21:21:29 +03:00
split_normalizer.py Publishing 2020.1 content 2020-02-11 22:48:49 +03:00