Update the fuse_view_copy_transform_pass to check shapes
rather than args to match differet ways of expressing the same shape.
This change makes some as_strided ops into noops which they were
not previosuly, so an addtional noops check is added to fix this.
Additionally moves constants in the pass to class level to simplify
overriding behaviour for inheriting passes.
Note: test names as_strided_copy -> as_strided since the _copy
suffix of operator names are removed in name check.
Signed-off-by: Adrian Lundell <adrian.lundell@arm.com>
Change-Id: Iba8dc3862c3fc4a8a34e036377ec7bcee84988b1
Update the fuse_view_copy_transform_pass to check shapes rather than args to match different ways of expressing the same shape. This change makes some as_strided ops into noops which they were not previously so an additional noops check is added to fix this.
Additionally moves constants in the pass to class level to simplify overriding behavior for inheriting passes.
Note: test names as_strided_copy -> as_strided since the _copy suffix of operator names are removed in name check.