Commit Graph

3 Commits (7cfaeced677c9e8efbd68a274feacd147028204c)

Author SHA1 Message Date
Ross Wightman 5c5ae8d401 Fix #2132, remove use of _C.set_grad_enable. Line endings were messed up too 2024-04-09 09:00:23 -07:00
Hoan Nguyen 39190f5f44
Remove inplace operators when calculating the loss
Remove inplace operators to overcome the following error when using `asymmetric_loss`
```
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
```
2022-10-17 10:41:21 +02:00
talrid 27fadaa922 asymmetric_loss 2020-10-16 17:12:28 +03:00