aa12356jm:

self.skip_add.mul(x5,x)


Thanks for pasting the issue. I think the issue is resulting from “-x5”, can you change it to mul_scalar(x5, -1)? Also add_relu’s second argument should be a tensor instead of int. We will look into the support of -x.