I suspect this to be a bug, however, did not spend much time with your CMAES implementation.
This line tries to cast self.sigma to a building float.
I think that for multidim problems this could be a vector (torch.Tensor). At least during initialization, it is a tensor.
If I am correct, the float(...) could be turned into a self.sigma.to(device="cpu", dtype=torch.float)
I suspect this to be a bug, however, did not spend much time with your CMAES implementation.
This line tries to cast
self.sigma
to a building float. I think that for multidim problems this could be a vector (torch.Tensor). At least during initialization, it is a tensor.If I am correct, the
float(...)
could be turned into aself.sigma.to(device="cpu", dtype=torch.float)
Thanks for looking at this, Fabio