in mobile_cv/arch/fbnet_v2/sg_block.py [0:0]
def forward(self, x):
y = x
if self.dw1 is not None:
y = self.dw1(y)
if self.pwl is not None:
y = self.pwl(y)
if self.pw is not None:
y = self.pw(y)
if self.upsample is not None:
y = self.upsample(y)
if self.dw2 is not None:
y = self.dw2(y)
if self.se is not None:
y = self.se(y)
if self.res_conn is not None:
y = self.res_conn(y, x)
return y