Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Failed to activate node delta_w #15

Open
steviestevepy opened this issue Feb 2, 2021 · 1 comment
Open

Exception: Failed to activate node delta_w #15

steviestevepy opened this issue Feb 2, 2021 · 1 comment

Comments

@steviestevepy
Copy link

Currently running the adaptive HyperNEAT example using device = "cuda:0"

Population size: 100
Elitism: 10%
No multiprocessing

It runs okay for several generations, up until the following exception is thrown from the cppn.py
Any help to sort out this issue is appreciated.

 File "/pytorch_neat/cppn.py", line 108, in __call__
    return self.get_activs(shape)
  File "/pytorch_neat/cppn.py", line 93, in get_activs
    self.activs = self.activate(xs, shape)
  File "/pytorch_neat/cppn.py", line 87, in activate
    raise Exception("Failed to activate node {}".format(self.name))
Exception: Failed to activate node delta_w
@steviestevepy
Copy link
Author

Additional info on Traceback : RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

Could this be because self.aggregation(inputs) is not correctly implemented for cuda:0 device?

Traceback (most recent call last):
  File "/pytorch_neat/cppn.py", line 83, in activate
    pre_activs = self.aggregation(inputs)
  File "/pytorch_neat/aggregations.py", line 20, in sum_aggregation
    return sum(inputs)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant