prune_squeeze_ops
Classes
PruneSqueezeOps
The purpose of this transform is to prune SQUEEZE operators.
- Find any SQUEEZE operator where subsequent operators dont rely on input tensor.
- If found, set output tensor buffer to input tensor buffer and drop the op.
Functions
apply
apply(model: ModelT, subgraph: SubGraphT, operations: list[Type[AotOperator]]) -> tuple[litert.ModelT, litert.SubGraphT, list[Type[AotOperator]]]