Help! To realize the algorithm of adaptive activation function of PINN

Here the formula of the adaptive activation function is given by
$$z^k=\sigma \cdot (a\cdot(W^k z^{k-1}+b^k))$$