Class ov::pass::EliminateGatherUnsqueeze#
-
class EliminateGatherUnsqueeze : public ov::pass::MatcherPass#
Matches Gather ->[Binary Operation]-> Unsqueeze If axis for Gather and Unsqueeze is the same and Gather indices are scalar Unsqueeze is being removed and indices become 1D. Must be executed after SharedOpOptimization — It is possible to have multiple similar Unsqueeze operations after Gather, so they must be optimized beforehand.