TorchGA icon indicating copy to clipboard operation
TorchGA copied to clipboard

cpu-gpu compatibility

Open rasmuspjohansson opened this issue 2 years ago • 0 comments

Evaluating models usually goes faster with GPU enabled. This simple change enables model_weights_as_vector() and model_weights_as_dict() to work also when torch use GPU for computations.

rasmuspjohansson avatar Apr 12 '22 20:04 rasmuspjohansson