prune_identity_ops
Classes
PruneIdentityOpsOptions
Options for the PruneIdentityOps transform.
PruneIdentityOps
The purpose of this transform is to make identity ops into no-ops.
Identity operators are those that only change the view but not the data itself, such as EXPAND_DIMS, RESHAPE, and SQUEEZE.
- Find any identity operator where subsequent operators dont rely on input tensor.
- If found, set output tensor as alias of input tensor.