Hello Xavier,
A 100 x 100 layer with 100 connections per neuron would give about 1 million neurons. I just tried it on my computer and dumped 1 million connections in 50 seconds. That still seems very long, given that GetConnections() completes in 0.6s with no arguments and in 2.6s when source, target and synapse model are given.
Could you open an issue about the slow DumpLayerConnection on Github?
Best, Hans Ekkehard
--
Prof. Dr. Hans Ekkehard Plesser
Department of Data Science Faculty of Science and Technology Norwegian University of Life Sciences PO Box 5003, 1432 Aas, Norway
Phone +47 6723 1560 Email hans.ekkehard.plesser@nmbu.nomailto:hans.ekkehard.plesser@nmbu.no Home http://arken.nmbu.no/~plesser
From: Xavier Otazu xotazu@cvc.uab.cat Date: Friday, 8 March 2024 at 14:06 To: users@nest-simulator.org users@nest-simulator.org Subject: [NEST Users] DumpLayerConnections() enhancement request [Some people who received this message don't often get email from xotazu@cvc.uab.cat. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Hi!
I am using DumpLayerConnections() with two layers with around 100x100 nodes each layer. Every layer node is connected to around 100 nodes on the other layer. Calling the DumpLayerConnections() takes around 10-15 minutes to save connections to file. I know it is a too general request, but it would be nice if this function is faster.
In my particular case, I obtain these connections in a previous step using GetConnections(). I guess (hence I am probably wrong) that DumpLayerConnections() calls GetConnections(). If I am right, I believe it could be an interesting enhancement to implement a DumpLayerConnections() function with input parameters that are a set of connections, that is, something like:
myconn = nest.GetConnections(layer1, layer2, ...) nest.DumpLayerConnections(myconn)
Thanks a lot in advance!
Xavier _______________________________________________ NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org