- Fold an unpack(pack(x)) to x.
- Rewrite a tensor.pack to an tensor.expand_shape if only one dimension is packed.
|  Differential  D141123  
[MLIR][Tensor] Add canonicalization patterns for `tensor.pack` Authored by chelini on Jan 6 2023, 4:49 AM. 
Details 
 
 
Diff Detail 
 Event Timeline
 
 
 Comment Actions 
 
 
 
 
 
 
 
 
 | ||||||||||||||||||||||||||||||||||||||||||
[optional] The operandType is only used once; it does not improve readability. The method itself describes it. I think we can save one line here.