class_docstr: Laplacian loss is refer to
  https://github.com/JizhiziLi/AIM/blob/master/core/evaluate.py#L83
class_docstr_tok: ["Laplacian","loss","is","refer","to","https",":","\/\/github.com\/JizhiziLi\/AIM\/blob\/master\/core\/evaluate.py","#","L83"]
code: def laplacian_pyramid(self, input, kernel, max_levels=5):
      current = input
      pyr = []
      for level in range(max_levels):
          filtered = self.conv_gauss(current, kernel)
          diff = current - filtered
          pyr.append(diff)
          current = F.avg_pool2d(filtered, 2)
      pyr.append(current)
      return pyr
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg.cvlibs import manager
  import cv2
label_desc: Use image node_id 5 for calling the LaplacianLoss obj's underlying member method code with example usage: obj.laplacian_pyramid(input, kernel, max_levels) and returns: pyr