You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
#3
Open
sara-mft opened this issue
Jul 29, 2024
· 0 comments
Warning to resolve in beexai/evaluate/metrics/infidelity.py:42 and beexai/evaluate/metrics/sensitivity.py:51:
To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
The text was updated successfully, but these errors were encountered:
Warning to resolve in
beexai/evaluate/metrics/infidelity.py:42
andbeexai/evaluate/metrics/sensitivity.py:51
:To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
The text was updated successfully, but these errors were encountered: