class_docstr: Series decomposition block
  Build for Autoformer
class_docstr_tok: ["Series","decomposition","block","Build","for","Autoformer"]
code: def forward(self, x):
      moving_mean = self.moving_avg(x)
      res = x - moving_mean
      return res, moving_mean
  
imports: import os
  import math
  import numpy
  from math import sqrt
  from scipy.fftpack import next_fast_len
label_desc: Use image node_id 2 for calling the SeriesDecomposeBlock obj's underlying member method code with example usage: obj.forward(x) and returns: res,  moving_mean