riveSunder / yuca

Your Universal Cellular Automata
MIT License
12 stars 0 forks source link

Instantiation bug in CCA #82

Closed riveSunder closed 1 year ago

riveSunder commented 1 year ago
RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation.

This has to do with the interaction of requires_grad in system parameters and to_device. Probably, a parameter is re-instantiated with requires_grad true after calling set_kernel_radius

riveSunder commented 1 year ago

Problem occurs most obviously when instantiating CCA with a ca_config

ca = CCA(ca_config="conway_life.npy")
riveSunder commented 1 year ago

Addressed in PR #83