赞
踩
【Error】TypeError: forward() got an unexpected keyword argument ‘g’
模型定义的某层的参数输入带上参数名就报错
去掉参数名就行了
x1_2 = self.attention2(x_up2_1, x2_2) # 1-2