You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the current implementation is a directed acyclic graph, it should be possible to perform a topological sort over the hidden layers and build an optimized set of stages/tensors for better performance and resource utilization. This would also open up the avenue for GPU parallelization via compute shaders or CUDA (though I haven't researched CUDA in depth yet).
However, due to the fact that the structure of these networks changes extremely often and the fact that I want to preserve the DAG model at this project's core, there can be a performance concern with having to rebuild these optimized structures every generation. Depending on the fitness function and the number of times they run predictions during each generation, using this structure could negatively impact performance. Thus, I believe that the original scheduling system should be preserved, while additionally offering this structure to the end user and encouraging its use.
Currently, this issue is not a priority, since a significant portion of the time spent is likely during the actual mutation process. There is still a lot of work that needs to be done to optimize that part of the crate.
Activity
HyperCodec commentedon Jan 21, 2026
Currently, this issue is not a priority, since a significant portion of the time spent is likely during the actual mutation process. There is still a lot of work that needs to be done to optimize that part of the crate.
HyperCodec commentedon Jun 20, 2026
Another thing that I could add is a phantomdata reference to the original network to ensure that it is never mutated until the helper is dropped.
Something like this:
HyperCodec commentedon Jun 20, 2026
Actually, since it's going to need access to the source network to read weights and biases anyway, it might as well just contain a real reference.