class_docstr: Permute the feature map to gather pixels in local groups, and then reverse permutation.
class_docstr_tok: ["Permute","the","feature","map","to","gather","pixels","in","local","groups",",","and","then","reverse","permutation","."]
code: def rev_permute(self, x, size):
      n, h, w, c = size
      x = x.reshape(
          [
              self.lgs[0],
              self.lgs[0],
              n,
              h // self.lgs[0],
              w // self.lgs[0],
              c,
          ]
      )
      x = x.transpose([2, 3, 0, 4, 1, 5])
      x = x.reshape([n, h, w, c])
  
      return x
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg.cvlibs import manager, param_init
  from paddleseg.models import layers
  from paddleseg.utils import utils, logger
  from paddleseg.models.backbones.transformer_utils import *
label_desc: Use image node_id 3 for calling the LocalPermuteHelper obj's underlying member method code with example usage: obj.rev_permute(x, size) and returns: x