有很多资料说是有需要优化的参数未参与前向传播,请问这个问题聚体要怎么操作才能解决呢
parameter.grad.data.clamp_(-self.flags.grad_clamp, self.flags.grad_clamp)
AttributeError: 'NoneType' object has no attribute 'data'
有很多资料说是有需要优化的参数未参与前向传播,请问这个问题聚体要怎么操作才能解决呢
parameter.grad.data.clamp_(-self.flags.grad_clamp, self.flags.grad_clamp)
AttributeError: 'NoneType' object has no attribute 'data'