YU1ut / openset-DA

Code for 'Open Set Domain Adaptation by Backpropagation'
72 stars 26 forks source link

Access A Variable from torch.autograd.function.GradReverseBackward #8

Closed akul-goyal closed 1 year ago

akul-goyal commented 1 year ago

I am getting a “AttributeError: ‘GradReverseBackward’ object has no attribute ‘lambd’” on the backward propagation. I modified line 65 in models.py to GradReverse(lambd).apply(x).

tailuoaoteman commented 1 year ago

这是来自QQ邮箱的自动回复邮件。   已收到您的邮件。

akul-goyal commented 1 year ago

https://pytorch.org/tutorials/beginner/examples_autograd/two_layer_net_custom_function.html