mirror of
https://github.com/p-e-w/heretic.git
synced 2026-05-20 04:19:25 +00:00
feat(ara): fix issues on some multi-GPU setups
Co-authored-by: kabachuha <artemkhrapov2001@yandex.ru>
This commit is contained in:
@@ -570,6 +570,11 @@ class Model:
|
||||
module_index
|
||||
]
|
||||
|
||||
good_input = good_input.to(matrix.device)
|
||||
good_output = good_output.to(matrix.device)
|
||||
bad_input = bad_input.to(matrix.device)
|
||||
bad_output = bad_output.to(matrix.device)
|
||||
|
||||
def objective(matrix: Tensor) -> Tensor:
|
||||
new_good_output = good_input @ matrix.T
|
||||
new_bad_output = bad_input @ matrix.T
|
||||
|
||||
Reference in New Issue
Block a user