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
{{ message }}
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
I believe embeddings.numpy() on line 45 and 63 of saliency_interpreter.py should be embeddings.detach().cpu().numpy()
Otherwise while running the interpretation on GPU has a error 'TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.'
The text was updated successfully, but these errors were encountered:
lizardintelligence
changed the title
.numpy() command in _aggregate_token_embeddings isn't detaching from GPU into CPU label:bug
.numpy() command in _aggregate_token_embeddings isn't detaching from GPU into CPU type:bug
Jun 2, 2022
lizardintelligence
changed the title
.numpy() command in _aggregate_token_embeddings isn't detaching from GPU into CPU type:bug
.numpy() command in _aggregate_token_embeddings isn't detaching from GPU into CPU bug
Jun 2, 2022
lizardintelligence
changed the title
.numpy() command in _aggregate_token_embeddings isn't detaching from GPU into CPU bug
.numpy() command in _aggregate_token_embeddings isn't detaching from GPU into CPU label:bug
Jun 2, 2022
I believe embeddings.numpy() on line 45 and 63 of saliency_interpreter.py should be embeddings.detach().cpu().numpy()
Otherwise while running the interpretation on GPU has a error 'TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.'
The text was updated successfully, but these errors were encountered: