我的环境:
pytorch==0.4.1
python==3.6.13
错误代码:
def forward(self,input):
return irnn()(input,self.up_weight.weight,
self.right_weight.weight,self.down_weight.weight,
self.left_weight.weight, self.up_weight.bias,self.right_weight.bias,
self.down_weight.bias,self.left_weight.bias)
是不是这个版本不支持这么调用
我改成 o= irnn.forward(self,input,self.up_weight.weight,
self.right_weight.weight,self.down_weight.weight,
self.left_weight.weight, self.up_weight.bias,self.right_weight.bias,
self.down_weight.bias,self.left_weight.bias
AttributeError: 'Spacial_IRNN' object has no attribute 'save_for_backward'
我的环境:
pytorch==0.4.1
python==3.6.13
错误代码:
def forward(self,input):
return irnn()(input,self.up_weight.weight,
self.right_weight.weight,self.down_weight.weight,
self.left_weight.weight, self.up_weight.bias,self.right_weight.bias,
self.down_weight.bias,self.left_weight.bias)
是不是这个版本不支持这么调用
我改成 o= irnn.forward(self,input,self.up_weight.weight,
self.right_weight.weight,self.down_weight.weight,
self.left_weight.weight, self.up_weight.bias,self.right_weight.bias,
self.down_weight.bias,self.left_weight.bias
AttributeError: 'Spacial_IRNN' object has no attribute 'save_for_backward'